Yoast\WP\SEO\Conditionals
User_Edit_Conditional{}
Conditional that is only met when current page is the Edit User page or the User's profile page.
Хуков нет.
Использование
$User_Edit_Conditional = new User_Edit_Conditional(); // use class methods
Методы
- public is_met()
Код User_Edit_Conditional{} User Edit Conditional{} Yoast 24.4
class User_Edit_Conditional implements Conditional { /** * Returns whether or not this conditional is met. * * @return bool Whether or not the conditional is met. */ public function is_met() { global $pagenow; if ( $pagenow !== 'profile.php' && $pagenow !== 'user-edit.php' ) { return false; } return true; } }