pusatdata

Urut WP-Trik: Agar ID Post Berurutan - id urut

Sep 29th, 2016 (edited)
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. copy paste kode berikut ke wp-config.php paling atas
  2.  
  3. define( 'AUTOSAVE_INTERVAL', 3600 ); // autosave 1x per hour
  4. define( 'WP_POST_REVISIONS', false ); // no revisions
  5. define( 'DISABLE_WP_CRON', true );
  6. define( 'EMPTY_TRASH_DAYS', 7 ); // one week
  7.  
  8. disable autodraft, copy in function.php in wptheme
  9.  
  10. /* start Disable AutoSave */
  11. function disableAutoSave() {
  12. wp_deregister_script('autosave');
  13. }
  14. add_action( 'wp_print_scripts', 'disableAutoSave' );
  15. /* end Disable AutoSave */
Add Comment
Please, Sign In to add comment