Regex Syntax – Frequently Used

The following is common Regex Syntax that frequently is used when Writing a Redirect. ^ – Match only if the following is at the beginning of the line $ – Match only if the previous is at the end of the line ? – Match the previous 0 or 1 times (makes it optional) . –...

Remove Emoji Changes in WordPress

So WordPress has some emoji detection and modifications that get made by the core WordPress install.  Here is some code that you can put into your functions.php file to disable this as it can sometimes cause issues in other browsers like Safari. // REMOVE EMOJI ICONS...

Remove Video Download Link in Divi Video Box

So there are times where you want to try to protect the video on a page. Here is the jQuery that you should use. <script> jQuery(document).ready(function() { if (jQuery(‘.et_pb_video_box').length !== 0) {...

Rename of Project Permalink in Divi

Put this in the functions file. function custom_project_name () { return array( ‘feeds' => true, ‘slug' => ‘videos', ‘with_front' => false, ); } add_filter( ‘et_project_posttype_rewrite_args', ‘custom_project_name ‘...

Restart a Node App via CRON Script

There are times that you are needing to run a cron job within a websites control panel that ensures the websites node app remains active if it stops for any reason.  Here is the little script that I used where the executables for node where within the bin directory...