Yoast\WP\SEO\Presenters\Admin
Indexation_Permalink_Warning_Presenter{}
Устарела с версии 15.1. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Presenter class for the warning that is given when the Category URLs (stripcategorybase) option is touched.
Хуков нет.
Использование
$Indexation_Permalink_Warning_Presenter = new Indexation_Permalink_Warning_Presenter(); // use class methods
Методы
- public present()
Список изменений
Устарела с | 15.1 |
Код Indexation_Permalink_Warning_Presenter{} Indexation Permalink Warning Presenter{} Yoast 19.2
class Indexation_Permalink_Warning_Presenter extends Indexation_Warning_Presenter { /** * Represents the reason that the permalink settings are changed. */ const REASON_PERMALINK_SETTINGS = 'permalink_settings_changed'; /** * Represents the reason that the category base is changed. */ const REASON_CATEGORY_BASE_PREFIX = 'category_base_changed'; /** * Represents the reason that the home url option is changed. */ const REASON_HOME_URL_OPTION = 'home_url_option_changed'; /** * Presents the warning that your site's content is not fully indexed. * * @deprecated 15.1 * @codeCoverageIgnore * * @return string The warning HTML. */ public function present() { \_deprecated_function( __METHOD__, 'WPSEO 15.1' ); return ''; } }