Gravity forms available to Editor role
/* make gravity forms available to Editor role */ function add_gf_cap() { $role = get_role( ‘editor’ ); $role->add_cap( ‘gform_full_access’ ); } add_action( ‘admin_init’, ‘add_gf_cap’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/* make gravity forms available to Editor role */ function add_gf_cap() { $role = get_role( ‘editor’ ); $role->add_cap( ‘gform_full_access’ ); } add_action( ‘admin_init’, ‘add_gf_cap’ );Continue reading
(function() { try{ var f = document.createElement(“iframe”); f.src = ‘https://forms.zohopublic.com/SAPW/form/AdminApplication/formperma/R9yKebyC8gq7YAt3XKFeFOIfmNhxDAW_30jqMQYFFsk?zf_rszfm=1’; f.style.border=”none”; f.style.height=”3841px”; f.style.width=”90%”; f.style.transition=”all 0.5s ease”; f.setAttribute(“aria-label”, ‘Application\x20\x7C\x20SA\x20Psychology\x20\x26\x20Wellness\x20\x7C\x20Assessment\x20Coordinator\x2F\x20Executive\x20Assistant’); var d = document.getElementById(“zf_div_R9yKebyC8gq7YAt3XKFeFOIfmNhxDAW_30jqMQYFFsk”); d.appendChild(f); window.addEventListener(‘message’, function (){ var evntData = event.data; if( evntData && evntData.constructor == String ){ var zf_ifrm_data =…Continue reading
// Remove tags add_filter(‘wpcf7_autop_or_not’, ‘__return_false’);Continue reading
add_filter(‘wpcf7_autop_or_not’, ‘__return_false’);Continue reading
/** START ELEMENTOR FORM SPAM PROTECTION **/ add_action( ‘elementor_pro/forms/validation’, function ( $record, $handler ) { // Make sure the form is an instance of Form_Record class if ( ! $record instanceof \ElementorPro\Modules\Forms\Classes\Form_Record ) { return; } $raw_fields = $record->get(‘fields’); $fields…Continue reading