Yoast\WP\SEO\Elementor\Infrastructure
Request_Post::get_post_action
Retrieves the action from the POST request.
Метод класса: Request_Post{}
Хуков нет.
Возвращает
Строку|null. The action or null if not found.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_post_action(): ?string;
Код Request_Post::get_post_action() Request Post::get post action Yoast 27.4
private function get_post_action(): ?string {
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reason: We are not processing form information.
if ( isset( $_POST['action'] ) && \is_string( $_POST['action'] ) ) {
// phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information, we are only strictly comparing.
return (string) \wp_unslash( $_POST['action'] );
}
return null;
}