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