Yoast\WP\SEO\Conditionals

User_Edit_Conditional{}Yoast 1.0

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

Методы

  1. public is_met()

Код 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;
	}
}