用于保存帖子的Ajax处理程序。

原型

wp_ajax_press_this_save_post()

源文件

路径:wp-includes/deprecated.php

<?php
...
function wp_ajax_press_this_save_post() {
	_deprecated_function( __FUNCTION__, '4.9.0' );
	if ( is_plugin_active( 'press-this/press-this-plugin.php' ) ) {
		include( WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php' );
		$wp_press_this = new WP_Press_This_Plugin();
		$wp_press_this->save_post();
	} else {
		wp_send_json_error( array( 'errorMessage' => __( 'The Press This plugin is required.' ) ) );
	}
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/wp_ajax_press_this_save_post/