Automatic lazy rendering exclusion
// add_filter( ‘rocket_lrc_optimization’, ‘__return_false’ , 999 ); add_filter( ‘rocket_lrc_exclusions’, function( $exclusions ) { $exclusions[] = ‘breakdance”‘; return $exclusions; } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
// add_filter( ‘rocket_lrc_optimization’, ‘__return_false’ , 999 ); add_filter( ‘rocket_lrc_exclusions’, function( $exclusions ) { $exclusions[] = ‘breakdance”‘; return $exclusions; } );Continue reading
google-site-verification: google476d5b0743fce814.htmlContinue reading
/** * Gravity Wiz // Gravity Forms // Entry Count Shortcode * * Extends the [gravityforms] shortcode, providing a custom action to retrieve the total entry count and * also providing the ability to retrieve counts by entry status (i.e.…Continue reading
function mepr_subaccount_email_parameter( $params, $txn ) { global $wpdb; $user = $txn->user(); $caid = get_user_meta( $user->ID, ‘mpca_corporate_account_id’, true ); if(empty( $caid ) ) { $query = $wpdb->prepare( “SELECT uuid FROM {$wpdb->prefix}mepr_corporate_accounts WHERE user_id = %d”, (int)$user->ID ); $uuid = $wpdb->get_var( $query…Continue reading
add_filter( ‘aioseo_facebook_tags’, ‘aioseo_filter_remove_facebook_tags’ ); function aioseo_filter_remove_facebook_tags( $facebookMeta ) { $uri = parse_url( $_SERVER[‘REQUEST_URI’], PHP_URL_PATH ); if ( strpos( $uri, ‘/listing-detail/’ ) !== false ) { return array(); } return $facebookMeta; }Continue reading
add_action( ‘save_post_vendor’, ‘clean_gutenberg_comments_on_save’, 10, 3 ); function clean_gutenberg_comments_on_save( $post_id, $post, $update ) { // Only run on updates, not when auto-saving or revisioning if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) { return; } // Ensure we’re dealing with the…Continue reading
add_action( ‘save_post_vendor’, ‘clean_gutenberg_comments_on_save’, 10, 3 ); function clean_gutenberg_comments_on_save( $post_id, $post, $update ) { // Only run on updates, not when auto-saving or revisioning if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) { return; } // Ensure we’re dealing with the…Continue reading
// Description: // This code snippet integrates Gravity Forms with Advanced Custom Fields (ACF) to manage multiple image uploads from the ACF vendor/venue gallery saved in user meta. Using the gform_pre_submission_filter hook, it processes multiple file uploads, converting each uploaded…Continue reading
// Description: // This code snippet integrates Gravity Forms with Advanced Custom Fields (ACF) to manage multiple image uploads from the ACF vendor/venue gallery saved in user meta. Using the gform_pre_submission_filter hook, it processes multiple file uploads, converting each uploaded…Continue reading