function mepr_stop_unauthorized_redirect( $redirect, $url, $delim ) { global $post; if( $post->ID === 123 ) { $redirect = false; } return $redirect; } add_filter( ‘mepr-pre-run-rule-redirection’, ‘mepr_stop_unauthorized_redirect’, 10, 3) ;Continue reading
function mepr_stop_unauthorized_redirect( $redirect, $url, $delim ) { global $post; if(in_array($post->ID, array( 123, 456, 789 ) ) ) { $redirect = false; } return $redirect; } add_filter( ‘mepr-pre-run-rule-redirection’, ‘mepr_stop_unauthorized_redirect’, 10, 3 );Continue reading
/** * Conditionally apply the date picker locale strings, depending on what the * current locale is as defined by WPML. * * @link https://wpforms.com/developers/localize-the-date-picker-strings/ */ function wpf_dev_datepicker_apply_locale() { if ( defined( ‘ICL_LANGUAGE_CODE’ ) && ‘es’ == ICL_LANGUAGE_CODE ) {…Continue reading
/** * Apply the date picker locale strings. * * @link https://wpforms.com/developers/localize-the-date-picker-strings/ */ function wpf_dev_datepicker_apply_locale() { ?>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
/** * Comprehensive UpdraftPlus Email Notification Disabler * Add this code to your theme’s functions.php or WPCode * By: Empathy First Media */ // Master switches and initialization prevention add_filter(‘updraftplus_disable_all_mail_init’, ‘__return_true’); // Master switch to disable email initialization add_filter(‘updraftplus_email’, ‘__return_false’);…Continue reading