Activate and Deactivate Plugin based on schedule

This is a code snippet for answering this question: https://www.facebook.com/groups/WP.org/permalink/10165475785265643/ You can use this code snippet to activate/ de-activate your plugin at specific time/day. /** * Activate - Deactivate Plugin…

Prevent new terms being added to a custom taxonomy

Sometimes, you create some custom taxonomies using register_taxonomy or CPT UI... and want disable add new taxonomy's term (before handling to client...) This snippet will allow you disable creating new…

Smarter way to enable debug in WordPress

By default, if you want to enable Debug Mode on WordPress, you have to access to wp-config.php file (via FTP...) to edit this line of code: define('WP_DEBUG', false); to this…

Sticky Publish – Update Button

Are you tired with scroll mouse up during editing long post/ custom post type? Just to click Update - Publish Button... Tired no more with this super cool snippet. add_action('admin_head',…