Category: Admin
Use a WooCommerce Product Attribute as the Brand in Product Schema
add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $graph ) { if ( ! function_exists( ‘is_product’ ) || ! is_product() ) { return $graph; } foreach ( $graph as &$item ) { if ( ‘Product’ !== $item[‘@type’] ) { continue; } if…Continue reading
Donation Form Email Check (Advanced)
add_filter(‘charitable_validate_donation_form_submission_email_check’, ‘charitable_test_for_email’, 10, 2 ); function charitable_test_for_email( $valid, $submitted ) { $email = $submitted->get_submitted_value( ’email’ ); if ( ! is_valid_email( $email ) ) { return false; } return $valid; } function is_valid_email($email) { // Use PHP’s built-in function to split…Continue reading
Google Webmaster SEO Issue | Fix Duplicate without user-selected canonical
add_filter( ‘rank_math/frontend/robots’, function( $robots ) { // Check if we are currently viewing a feed if ( is_feed() ) { $robots[‘index’] = ‘noindex’; $robots[‘follow’] = ‘nofollow’; } return $robots; });Continue reading
Hello World
Hello World!Continue reading
Google Tag Manager
Google Analytics
Hubspot Web Snippet
Untitled Snippet
JS – Plug ALD villatheme – Nascondi Spedizioni troppo costose con jquery (CLOUD attivo) (vecchio)
/* quest script serve sul plugin ALD di villatheme, che mette nella pagina e nel carrello checkout le spedizioni aliexpress. visto che le spedizioni alcune hanno costi assurdi, ho impostato che non vengano visualizzate le spedizion iche superano una numero.…Continue reading