Change site url

add_action('init', 'update_site_url_once'); function update_site_url_once() { if (get_option('home') !== 'https://amazingmarvin.com/blog/') { update_option('siteurl', 'https://amazingmarvin.com/blog/'); update_option('home', 'https://amazingmarvin.com/blog/'); } }

Database connection test snippet

A snippet to test the connection to the database.

om.DisplayRules.afterRun

document.addEventListener('om.DisplayRules.afterRun', function(event) { var DisplayRules = event.detail.DisplayRules; var Campaign = event.detail.Campaign; if ( 'YOUR-CAMPAIGN-ID' === Campaign.id…

om.Action.refresh

document.addEventListener('om.Action.refresh', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…

verify

Employee ID Verification Employee ID Verification Employee ID Verify

Success view

#om-{{id}}-success button.{{ns}}-CloseButton { /* Your Custom Styles */ }

Disabling the Admin Bar for Non-Admin Users

add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } }

ACF - KEYSMST_ Case - Tab 8: Contact Log Staging Fields

/** * WPCode Snippet: MST Case - Tab 8: Contact Log Staging Fields * Description: Temporary…

ismail daugherty PRO
<10

TICKET NUMBER

/** * Increment total entry number on each submission * * @link https://wpforms.com/developers/how-to-increment-a-count-on-each-form-submission */ function wpf_dev_update_total_field(…

bypass SSL certificate

bypass ssl - getting errors - fixes that

Carla Mawyin
<10
1 56 57 58 59 60 125