applies() ) { return $value; } $mine = PublicationProfile::publication_name(); return '' !== $mine ? $mine : $value; } public function description( $value ) { if ( ! $this->applies() ) { return $value; } $mine = PublicationProfile::publication_description(); return '' !== $mine ? $mine : $value; } /** On Settings > General, say that the public site shows the PublishRank values. */ public function general_settings_notice() { $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null; if ( ! $screen || 'options-general' !== $screen->id || ! current_user_can( 'manage_options' ) || ! self::enabled() ) { return; } if ( '' === PublicationProfile::publication_name() && '' === PublicationProfile::publication_description() ) { return; } echo '

' . esc_html__( 'PublishRank is overriding the Site Title and Tagline on the public website with the publication title and description set in PublishRank. The values below are left unchanged. Turn this off in PublishRank Settings > Visible publication identity.', 'publishrank' ) . '

'; } }