Warning: This function has been deprecated.

wp_ajax_press_this_save_post() WordPress Function

The wp_ajax_press_this_save_post() function is used to save a post using the Press This feature in WordPress. This function is triggered when the user clicks the save button on the Press This page.

wp_ajax_press_this_save_post() #

Ajax handler for saving a post from Press This.


Source

File: wp-includes/deprecated.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.' ) ) );
	}
}


Top ↑

Changelog

Changelog
VersionDescription
4.9.0This function has been deprecated.
4.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More