PATH:
home
/
letacommog
/
bresse-paysage
/
wp-content
/
plugins
/
wordpress-seo-premium
/
admin
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin */ /** * Notifies the user to update the Person on the publish entity in the Configuration Wizard. */ class WPSEO_Schema_Person_Upgrade_Notification implements WPSEO_WordPress_Integration { /** * Registers all hooks to WordPress * * @return void */ public function register_hooks() { add_action( 'admin_init', array( $this, 'handle_notification' ) ); } /** * Handles if the notification should be added or removed. */ public function handle_notification() { $company_or_person_user_id = WPSEO_Options::get( 'company_or_person_user_id', false ); if ( WPSEO_Options::get( 'company_or_person' ) === 'person' && empty( $company_or_person_user_id ) ) { $this->add_notification(); return; } $this->remove_notification(); } /** * Adds a notification to the notification center. */ protected function add_notification() { $notification_center = Yoast_Notification_Center::get(); $notification_center->add_notification( $this->get_notification() ); } /** * Removes a notification to the notification center. */ protected function remove_notification() { $notification_center = Yoast_Notification_Center::get(); $notification_center->remove_notification( $this->get_notification() ); } /** * Gets the notification object. * * @return Yoast_Notification */ protected function get_notification() { $message = sprintf( /* translators: %1$s is a link start tag to the Configuration Wizard, %2$s is the link closing tag. */ __( 'You have previously set your site to represent a person. We’ve improved our functionality around Schema and the Knowledge Graph, so you should go in and %1$scomplete those settings%2$s.', 'wordpress-seo' ), '<a href="' . esc_url( admin_url( 'admin.php?page=wpseo_titles' ) ) . '">', '</a>' ); $notification = new Yoast_Notification( $message, array( 'type' => Yoast_Notification::WARNING, 'id' => 'wpseo-schema-person-upgrade', 'capabilities' => 'wpseo_manage_options', 'priority' => 0.8, ) ); return $notification; } }
[+]
..
[+]
google_search_console
[-] class-keyword-synonyms-modal.php
[edit]
[+]
links
[-] class-admin-asset-dev-server-location.php
[edit]
[+]
onpage
[-] interface-collection.php
[edit]
[-] class-yoast-dashboard-widget.php
[edit]
[-] class-bulk-title-editor-list-table.php
[edit]
[-] class-plugin-availability.php
[edit]
[-] class-admin-gutenberg-compatibility-notification.php
[edit]
[-] class-premium-popup.php
[edit]
[-] class-database-proxy.php
[edit]
[-] class-plugin-compatibility.php
[edit]
[-] class-extension-manager.php
[edit]
[-] class-expose-shortlinks.php
[edit]
[-] class-admin-asset-manager.php
[edit]
[-] class-meta-storage.php
[edit]
[+]
statistics
[+]
config-ui
[-] class-recalculate-scores.php
[edit]
[+]
notifiers
[-] class-yoast-alerts.php
[edit]
[-] class-help-center-item.php
[edit]
[-] class-yoast-network-admin.php
[edit]
[-] class-multiple-keywords-modal.php
[edit]
[-] class-extensions.php
[edit]
[+]
metabox
[+]
services
[-] class-yoast-form.php
[edit]
[-] class-help-center.php
[edit]
[+]
exceptions
[-] class-asset.php
[edit]
[-] class-admin-media-purge-notification.php
[edit]
[-] class-bulk-description-editor-list-table.php
[edit]
[-] class-gutenberg-compatibility.php
[edit]
[-] index.php
[edit]
[-] class-paper-presenter.php
[edit]
[-] class-yoast-notification-center.php
[edit]
[-] class-remote-request.php
[edit]
[-] class-export.php
[edit]
[-] class-product-upsell-notice.php
[edit]
[-] class-admin-utils.php
[edit]
[+]
help_center
[-] class-collector.php
[edit]
[-] courses-overview.php
[edit]
[-] interface-installable.php
[edit]
[+]
formatter
[-] class-my-yoast-route.php
[edit]
[-] class-admin-help-panel.php
[edit]
[-] class-social-admin.php
[edit]
[+]
recalculate
[-] ajax.php
[edit]
[-] class-schema-person-upgrade-notification.php
[edit]
[-] class-option-tabs-formatter.php
[edit]
[-] class-admin-asset-seo-location.php
[edit]
[+]
menu
[-] class-admin-asset-yoast-components-l10n.php
[edit]
[+]
endpoints
[-] class-my-yoast-proxy.php
[edit]
[+]
capabilities
[+]
filters
[-] class-admin-init.php
[edit]
[-] class-option-tabs.php
[edit]
[-] class-meta-columns.php
[edit]
[-] class-primary-term-admin.php
[edit]
[+]
views
[+]
taxonomy
[-] class-yoast-columns.php
[edit]
[-] class-admin-editor-specific-replace-vars.php
[edit]
[+]
import
[+]
watchers
[-] class-admin-recommended-replace-vars.php
[edit]
[-] class-admin-user-profile.php
[edit]
[-] class-yoast-network-settings-api.php
[edit]
[-] class-add-keyword-modal.php
[edit]
[-] class-meta-table-accessible.php
[edit]
[-] class-suggested-plugins.php
[edit]
[-] class-plugin-conflict.php
[edit]
[-] class-extension.php
[edit]
[+]
ajax
[-] class-config.php
[edit]
[-] class-yoast-plugin-conflict.php
[edit]
[+]
listeners
[-] class-yoast-notification.php
[edit]
[+]
pages
[+]
tracking
[-] class-premium-upsell-admin-block.php
[edit]
[-] class-admin-asset-location.php
[edit]
[-] class-option-tab.php
[edit]
[-] class-customizer.php
[edit]
[+]
roles
[-] class-bulk-editor-list-table.php
[edit]
[-] class-admin-asset-analysis-worker-location.php
[edit]
[-] class-admin.php
[edit]
[-] class-license-page-manager.php
[edit]