Archives: Snippets
Remove the Canonical URL for a specific URL
add_filter( ‘aioseo_canonical_url’, ‘aioseo_filter_canonical_url’ ); function aioseo_filter_canonical_url( $url ) { if (strpos($url,’/properties/’) !== false) { $url = home_url( $_SERVER[‘REQUEST_URI’] ); } return $url; }Continue reading
Noindex Product Search Pages
add_filter( ‘aioseo_robots_meta’, ‘aioseo_filter_robots_meta’ ); function aioseo_filter_robots_meta( $attributes ) { if ( is_search() && ‘product’ === get_query_var(‘post_type’) ) { $attributes[‘index’] = “noindex”; }; return $attributes; }Continue reading
Disable Shortcode Parsing in All in One SEO
add_filter( ‘aioseo_disable_shortcode_parsing’, ‘__return_true’ );Continue reading
Remove “Login with GoDaddy” from GoDaddy Managed WordPress
/** Removes the “Login with GoDaddy” SSO Integration. **/ add_action( ‘plugins_loaded’, function() { add_filter( ‘wpaas_gd_sso_button_enabled’, ‘__return_false’, 99999999, 1 ); } );Continue reading
Alex Anzalone
Report from Pro-Football-Reference.com.Continue reading
Google Ads
Enable WooCommerce Product Attributes in Search Appearance
add_filter( ‘aioseo_woocommerce_product_attributes’, ‘__return_true’ );Continue reading
Gravity Forms: Add Custom CSS Buttons to GravityWP CSS Ready Classes Plugin
// Add custom css: quick buttons and accordion at the top of the GravityWP – CSS Selector modal function my_custom_gwp_css_selector_add_css() { $html .= “ Custom CSS Section Font Smaller (90%) Section Font Smaller (75%) Gravity PDF GravityPDF Page Break GravityPDF…Continue reading
Gravity Forms: Cambridge Caregivers Gravity Forms Snippets
/** * Credit Card Expiration Field on Cambridge Caregivers Engagement Form year dropdown set to current year and +10 years from now */ add_filter(‘gform_date_min_year’, function ($min_year, $form, $field) { return $form[‘id’] == 1 && $field->id == 172 ? date(‘Y’) :…Continue reading