This post is a part 6 of Premium WordPress Plugins post series. This plugin lets you add custom CSS, JS and PHP code to your WordPress site without any hassles. This is an easy-to-use WordPress Plugin to add custom CSS styles, JS code and new WordPress functionality using PHP that override Plugin and Theme default […]
Every settings page has a unique id i.e., menu item id. Settings pages are rendered by wp-admin/admin.php?page=id file. Therefore we can just check the query string before enqueueing a script or css file. Here is example code: function enqueue() { //replace with your page "id" if($_GET["page"] == "id") […]
To enable automatic theme updates you need to use this filter add_filter( ‘auto_update_theme’, ‘__return_true’ ); Add this filter via a plugin. The filter callback is passed with objects holding information about the theme that will be auto updated. Therefore you can also enable or disable auto update for specific themes. Here is example code function […]
To enable automatic plugin updates you need to use this filter add_filter( ‘auto_update_plugin’, ‘__return_true’ ); Add this filter via a plugin. The filter callback is passed with objects holding information about the plugin that will be auto updated. Therefore you can also enable or disable auto update for specific plugins. For example: function auto_update_specific_plugins ( […]
When an automatic update happens WordPress sends an email to the site administrator notifying about the update. You can disable this email notification by using this filter add_filter( ‘auto_core_update_send_email’, ‘__return_false’ );
This post is a part 1 of Create a WordPress Post Editor Button to Add Shortcode post series. In this tutorial we will see how to add buttons to WordPress text editor. This can be useful while creating a shortcode where you want to add the shortcode tags with just a click instead of typing […]
This post is a part 2 of Create a WordPress Post Editor Button to Add Shortcode post series. In this tutorial we will see how to add buttons to the WordPress visual editor. In this tutorial we will create a WordPress plugin which lets you add a button to the visual editor. This button can […]
This post is a part 15 of Creating a WordPress Admin Theme post series. WordPress provides a post editor to add or edit content of a post or page. WordPress post editor has a lot of buttons attached to it to add or edit text in the editor. This makes adding and editing text in […]
Facebook loads new posts on timeline and news feed as you scroll down. This makes Facebook home page and profile load faster as Facebook don’t have to load everything on page load. For achieving this Facebook uses a technique called as Infinite scrolling. In this tutorial we will see how to achieve infinite scroll using […]
Most Commented