Monthly Archives: April 2018

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: , ,

Debugging Apache .htaccess Rewrite Rules

In Apache 2.4, open up httpd.conf and find the line that starts with LogLevel. Change that to: LogLevel alert rewrite:trace6 And restart Apache. Your error.log (in \apache\logs\ typically) will have the detailed trace of the rewrite rules. Example: http://snippi.com/s/c75uk61 More

Posted in Internet, 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: , ,

Six Cheap Interesting Ways To Attract More Customers

If you want to make your small business successful in the long-run, you need to work on building more and more business strategies to attract more customers to your business. The main issues that people suffer is the lack of

Posted in Guest Posts Tagged with: ,

Best Practices for Fast cPanel Response Times

One of the reasons people love to use cPanel so much is that it can significantly improve the speed at which we complete certain tasks, and it’s designed to be intuitive and fast to work with. However, there are some

Posted in Guest Posts Tagged with: , ,