Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress post revisions disable

// Disable post revision on a custom post type:
// When registering the post type be shure to remove it from supports array:
   $args = array(
      'label'               => 'CPT Label',
      'supports'            => array( 'title', 'editor', 'revisions' ),
      {...}
   );
   register_post_type( 'CPT', $args );
Source by www.wpbeginner.com #
 
PREVIOUS NEXT
Tagged: #wordpress #post #revisions #disable
ADD COMMENT
Topic
Name
5+7 =