Blog Archives

Remove Website Field From WordPress Comment Form

Remove the website / URL field in WordPress comment form. /** * Remove webiste field from WordPress comment form * * Removes the website field when comments form is displayed with comment_form() * * @since 1.0 */ function velocity_remove_comment_form_website_field( $fields

Posted in WordPress Tagged with: , , ,

Add Custom Post Type To Tag And Category Archive Pages

Here is how to modify the query for default taxonomy archive pages (tag archive page or category archive page) to display custom post types. /** * Add custom post types to the default tag query * * This will make

Posted in WordPress Tagged with: , ,

6 Must Have WordPress Plugins for Beginners [2018]

It has now become a mandate for everyone to have a good online presence given the state of digitisation we are in. Earlier it used to be difficult to create a niche online as it needed strong technical skills to

Posted in Guest Posts Tagged with: , ,

Read Plugin Version Of Any WordPress Plugin

Using the get_file_data() function. More efficient than using get_plugin_data() function. $plugin_data = get_file_data( WP_PLUGIN_DIR . ‘/plugin-folder-name-in-wp-content-plugins-folder/plugin-main-file.php’, array( ‘Version’ => ‘Version’ ) ); $plugin_data[‘Version’] will have the version. To read version from within the same plugin: $plugin_data = get_file_data( __FILE__, array(

Posted in WordPress Tagged with: , ,

Unhooking Actions Hooked Inside PHP Classes With remove_action

Here is an example. The following snippet removes the action hooked from the SumoMe plugin – https://wordpress.org/plugins/sumome/ /** * Dequeue SumoMe inline script * * @author Arun Basil Lal */ function rocket_helper_dequeue_sumo_me_js() {      global $wp_plugin_sumome;   remove_action(‘admin_footer’, array( $wp_plugin_sumome, ‘append_admin_script_code’

Posted in WordPress Tagged with: , ,