Advertisement
fauzanjeg

Make posts status publish after submit, Frontend Submit

Mar 21st, 2021
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. /* Make posts status publish after submit, Frontend Submit */
  2. function jnews_frontendsubmit_status_posts( $args ) {
  3.     $args['post_status'] = 'publish';
  4.  
  5.     return $args;
  6. }
  7.  
  8. add_filter( 'jnews_frontend_submit_create_post', 'jnews_frontendsubmit_status_posts' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement