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

Increment A Number In A Cell When Another Cell Is Edited

I use a Google sheet to generate and manage invoices for my clients. The process is fairly simple. One sheet holds the Name, address and contact details of the client. I enter the clients ID into a box for whom

Posted in Tutorials Tagged with: ,

Hide Rows In Google Sheets Based On Value Of Cell

I am a fan of Google sheets for collaborative work. To manage an ongoing Todo for the development of Super Progressive Web Apps WordPress Plugin, me and my partner uses Google sheets. We use data validation to set the status

Posted in Tutorials Tagged with: ,

Add Left And Right Swipe On Mobile For Bootstrap 4 Carousel

We are talking about carousel included in Bootstrap 4, you can see how to add one here. Add this to your JS file or load it on the footer // Thanks to Maaaaark – https://github.com/maaaaark/bcSwipe/blob/master/jquery.bcSwipe.min.js !function(t){t.fn.bcSwipe=function(e){var n={threshold:50};return e&&t.extend(n,e),this.each(function(){function e(t){1==t.touches.length&&(u=t.touches[0].pageX,c=!0,this.addEventListener(“touchmove”,o,!1))}function o(e){if(c){var

Posted in WordPress Tagged with: , , ,