Gravity Forms – Entry Count Shortcode

/** * 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

Disable OpenGraph Tags on all Listing Detail Pages

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

Remove Gutenberg Comment for Vendor Post Content

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

Remove Gutenberg Comment for Vendor Post Content

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

MemberPress: Disable Emails for Specific Memberships

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