pusatdata

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

Sep 29th, 2016 (edited)
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 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. define('UPLOADS', 'http://images.mydomain.com/uploads');
  9.  
  10. disable autodraft, copy in function.php in wptheme
  11.  
  12. /* start Disable AutoSave */
  13. function disableAutoSave() {
  14. wp_deregister_script('autosave');
  15. }
  16. add_action( 'wp_print_scripts', 'disableAutoSave' );
  17. /* end Disable AutoSave */
  18.  
  19.  
  20. -
  21. https://www.webnots.com/move-wordpress-images-folder-to-subdomain/
  22.  
Advertisement
Add Comment
Please, Sign In to add comment