Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Remove revisions from Wordpress pages

1
define('WP_POST_REVISIONS', false );
Comment

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 );
Comment

PREVIOUS NEXT
Code Example
Php :: laravel elequent query 
Php :: Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead. 
Php :: today date to ago for the date in php 
Php :: php foreach array pop 
Php :: h:i:s explode in php by ":" 
Php :: how condition for multiple row by orwhere laravel 
Php :: php json_decode not working 
Php :: german locale php 
Php :: i+= in php 
Php :: internal server error phpmyadmin 
Php :: ziparchive php example 
Php :: apache using wrong php version 
Php :: all resource routes laravel 8 
Php :: array to string conversion php 
Php :: laravel validate form data unique 
Php :: windows logged in user name in php 
Php :: laravel outer join 
Php :: plesk web config file laravel 
Php :: create a laravel project 
Php :: drop table phpmyadmin 
Php :: php try json decode and check 
Php :: codeigniter 4 delete redirect with data 
Php :: how simple get ip address json 
Php :: laravel modules 
Php :: php function to remove null value from array 
Php :: How to display custom field in wordpress? 
Php :: get return value from another function laravel 
Php :: utc time php 
Php :: sort php 
Php :: laravel if else condition in blade file 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =