Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Custom Status

Custom status to see which posts/pages are going to be copied to the staging site.

if ( ! function_exists('custom_post_status') ) {

// Register Custom Status
function custom_post_status() {

	$args = array(
		'label'                     => _x( 'NoTransfer', 'Status General Name', 'text_domain' ),
		'label_count'               => _n_noop( 'NoTransfer (%s)',  'NoTransfers (%s)', 'text_domain' ), 
		'show_in_admin_all_list'    => true,
		'show_in_admin_status_list' => true,
	);
	register_post_status( 'NoTransfer', $args );

}
add_action( 'init', 'custom_post_status', 0 );

}