Give export capability to administrator
$admin_role = get_role(‘administrator’); $admin_role->add_cap(‘export’, true);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
$admin_role = get_role(‘administrator’); $admin_role->add_cap(‘export’, true);Continue reading
document.addEventListener(‘om.Campaign.startShow’, function(event) { if(document.referrer.search.indexOf(‘google.com’) > 0) { // replace with the specific referral domain var optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID’); // replace CAMPAIGN_ID with the unique ID for your campaign optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading
document.addEventListener(‘om.Campaign.startShow’, function(event) { if(window.location.search.indexOf(‘shopping-cart’) > -1) { // replace shopping-cart wtih your specific URL path var optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID’); // replace CAMPAIGN_ID with the unique ID of your campaign optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading
document.addEventListener(‘om.Campaign.startShow’, function(event) { if(window.location.href == ‘https://example.com/specific-page’) { // replace with your specific URL var optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID’); // replace CAMPAIGN_ID with your campaign’s unique ID optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading
document.addEventListener(‘om.Campaign.startShow’, function(event) { if(window.location.href == ‘https://example.com/specific-page’) { // replace with your specific URL var optinCampaign = document.querySelector(‘#om-‘ + event.detail.Campaign.id); optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading
/** * Load the date picker locale strings. * * @link https://wpforms.com/developers/localize-the-date-picker-strings/ */ function wpf_dev_datepicker_locale( $forms ) { if ( true === wpforms_has_field_type( ‘date-time’, $forms, true )){ wp_enqueue_script( ‘wpforms-datepicker-locale’, ‘https://npmcdn.com/[email protected]/dist/l10n/es.js’, array( ‘wpforms-flatpickr’ ), null, true ); } } add_action( ‘wpforms_frontend_js’,…Continue reading