This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Publish and go to add new post or CPT | |
* @param int $post_id The Post id | |
* @return void | |
*/ | |
function save_and_new( $post_id ) { | |
$cpt = ( $_POST['post_type'] !== 'post') ? $_POST['post_type'] : false; | |
if ( isset( $_POST['publish'] ) || isset( $_POST['save'] ) ) { |
NewerOlder