WordPress开发者和主题制作者的搜索引擎



wp_ajax_untrash_post ›

Since3.1.0
已弃用n/a
wp_ajax_untrash_post ( $action )
参数:
  • (string) $action Action to perform.
    Required: Yes
定义在:
文档:

Ajax handler to restore a post from the trash.



源码

function wp_ajax_untrash_post( $action ) {
	if ( empty( $action ) ) {
		$action = 'untrash-post';
	}
	wp_ajax_trash_post( $action );
}