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
// add upsells below add-to-cart button add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_upsell_display’, 40 );Continue reading
add_filter( ‘the_content’, function ( $content ) { // Return early if it is a single post. if ( is_singular( ‘post’ ) ) { return $content; } return str_replace( ‘Continue reading
function mepr_disable_membership_emails( $recipients, $subject, $message, $headers ) { if( strpos( $message, ‘Free Membership’ ) !== false ) { return null; } return $recipients; } add_filter( ‘mepr-wp-mail-recipients’, ‘mepr_disable_membership_emails’, 10, 4 );Continue reading
function mepr_custom_failed_status_email( $txn ) { \MeprUtils::send_failed_txn_notices( $txn ); } add_action( ‘mepr-txn-status-failed’, ‘mepr_custom_failed_status_email’ );Continue reading
function mepr_email_user_role_change( $user_id, $new_role ) { $site_url = get_bloginfo( ‘wpurl’ ); $user_info = get_userdata( $user_id ); $to = $user_info->user_email; $subject = “Your role has changed: “.$site_url; // Email Subject $message = “Hello ” .$user_info->display_name . “, your role has changed…Continue reading