wp_register_script(‘jet-finder-script’, ”, array(‘jet-finder-jquery’), null, true); function jet_finder_shortcode() { // Deregister the built-in jQuery to avoid conflicts wp_deregister_script(‘jquery’); nocache_headers(); // Register and enqueue our own jQuery wp_register_script(‘jet-finder-jquery’, ‘https://code.jquery.com/jquery-3.6.0.min.js’, array(), null, true); wp_enqueue_script(‘jet-finder-jquery’); // Enqueue our CSS file wp_enqueue_style( ‘jet-finder-styles’, ‘/wp-content/themes/jetmembership/jet-finder/css/jet-finder.css’, array(),…Continue reading
Employee ID Verification Employee ID Verification Employee ID VerifyContinue reading
add_filter(‘wp_headers’, function($headers) { unset($headers[‘X-Robots-Tag’]); // remove noindex header return $headers; });Continue reading
add_filter(‘wp_headers’, function($headers) { unset($headers[‘X-Robots-Tag’]); // remove noindex header return $headers; });Continue reading
add_filter(‘wp_headers’, function($headers) { unset($headers[‘X-Robots-Tag’]); // remove noindex header return $headers; });Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/** * Gravity Forms Field to CPT Mirror * Creates/updates a gf_field post for each form field * Works on: form save, JSON import, manual trigger, and form deletion */ defined( ‘ABSPATH’ ) || exit; // Add a manual test…Continue reading
/** * Registers the “Gravity Form Field Meta” field group on gf_field posts. */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function () { if ( ! function_exists( ‘acf_add_local_field_group’ ) ) { return; } acf_add_local_field_group( [ ‘key’ => ‘group_gf_field_meta’, ‘title’…Continue reading