WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Conditionals\Admin

Doing_Post_Quick_Edit_Save_Conditional::is_met() public Yoast 1.0

Checks if the current request is ajax and the action is inline-save.

{} Это метод класса: Doing_Post_Quick_Edit_Save_Conditional{}

Хуков нет.

Возвращает

true|false. True when the quick edit action is executed.

Использование

$Doing_Post_Quick_Edit_Save_Conditional = new Doing_Post_Quick_Edit_Save_Conditional();
$Doing_Post_Quick_Edit_Save_Conditional->is_met();

Код Doing_Post_Quick_Edit_Save_Conditional::is_met() Yoast 17.1

public function is_met() {
	if ( ! \wp_doing_ajax() ) {
		return false;
	}

	// Do the same nonce check as is done in wp_ajax_inline_save because we hook into that request.
	if ( ! \check_ajax_referer( 'inlineeditnonce', '_inline_edit', false ) ) {
		return false;
	}

	if ( ! isset( $_POST['action'] ) ) {
		return false;
	}

	$sanitized_action = \sanitize_text_field( \wp_unslash( $_POST['action'] ) );

	return ( $sanitized_action === 'inline-save' );
}