Default Status to Pending NOT Working
-
Hi,
I have added this code to my functions.php but it brakes my site:
<?php // don't add this line since it's already in your functions.php file function _si_information_meta_box_args( $args ) { if ( 'auto-draft' == $args['post']->post_status ) { // only adjust drafts $args['status'] = 'publish'; // same as SI_Invoice::STATUS_PENDING and SI_Estimate::STATUS_PENDING } return $args; } add_filter( 'load_view_args_admin/meta-boxes/invoices/information.php', '_si_information_meta_box_args' ); add_filter( 'load_view_args_admin/meta-boxes/estimates/information.php', '_si_information_meta_box_args' );Any help is greatly appreciated.
Thank you,
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Default Status to Pending NOT Working’ is closed to new replies.