Grant Wholesale Lead Approval for a Certain User Role

Allow other user roles e.g. "Editor" to "Approve" or "Reject" wholesale applications from the WP Dashboard…

MemberPress: Update Account Course Tab Link With User-Role-Based Custom URLs

This code snippet replaces the default URL of the "Courses" tab link in the navigation menu…

MemberPress: Disable MemberPress Protection On Specific Page

This snippet allows disabling the MemberPress protection (unprotect) on a specific page. The code snippets overrides…

MemberPress: Auto Approve Sub-Accounts with New User Approve Plugin

This code snippet can be used if the New User Approve plugin is set on the…

Quiz About Getting Old

10 question multiple choice quiz about getting old

ACF JSON Menu Import

if( function_exists('acf_add_options_page') ) { acf_add_options_page(); } // // 1. Register ACF Field for Menu JSON add_action('acf/init',…

Reinhard Ekker
<10

Wordpress Debugging

define( 'WP_DEBUG', true ); define( 'SAVEQUERIES', true );

om.Campaign.init

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

om.Countdown.init

document.addEventListener('om.Countdown.init', function(event) { console.log(event.detail.Countdown); console.log(event.detail.Campaign); } );

om.Analytics.track example 1

document.addEventListener('om.Analytics.track', function(event) { if ( 'conversion' === event.detail.Analytics.type ) { console.log(event.detail.Campaign.id + '-' + event.detail.Campaign.type +…

Page Element Shortcodes

add_shortcode('page_title', function () { global $wp_query; if( isset( $wp_query ) && (bool) $wp_query->is_posts_page ) { return…

Shortcode widget main categories WooCommerce

function shortcode_categorie_principali_wc() { $args = array( 'taxonomy' => 'product_cat', 'orderby' => 'menu_order', 'order' => 'ASC', 'hide_empty'…

_MK - Last connection

// Enregistre la date de connexion de l'utilisateur function enregistrer_derniere_connexion($user_login, $user) { // Met à jour…

<10
1 127 128 129 130 131 213