Creating an admin meta box to save post as pending
The reason your code does not work is that the if-statement checking isset( $_POST[‘wp_cfc_save_meta_box’]) never evaluates to true. Your code generating the submit button, <?php submit_button( __( ‘Save as Pending’ ), ‘secondary button-large’, ‘Publish’, false ); ?> yields the following HTML: <input type=”submit” name=”Publish” id=”Publish” class=”button button-large” value=”Save as Pending” /> WordPress’ submit_button function takes … Read more