Advertisement
phpface

Untitled

Aug 14th, 2022
872
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. add_filter( 'register_post_type_args', function( $args, $post_type ){
  2.     if( $post_type == 'video' ){
  3.         $args['show_in_rest'] = true;
  4.     }
  5.     return $args;
  6. }, 10, 2 );
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement