Yoast\WP\SEO\Conditionals\Third_Party
Elementor_Edit_Conditional::is_yoast_save_post_action()
Checks if the current request' POST action is 'wpseo_elementor_save'.
Метод класса: Elementor_Edit_Conditional{}
Хуков нет.
Возвращает
true|false
. True when the POST action is 'wpseo_elementor_save'.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_yoast_save_post_action(): bool;
Код Elementor_Edit_Conditional::is_yoast_save_post_action() Elementor Edit Conditional::is yoast save post action Yoast 24.0
private function is_yoast_save_post_action(): bool { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reason: We are not processing form information. if ( ! isset( $_POST['action'] ) ) { return false; } // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reason: We are not processing form information. if ( ! \is_string( $_POST['action'] ) ) { return false; } // phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information, we are only strictly comparing. return \wp_unslash( $_POST['action'] ) === 'wpseo_elementor_save'; }