add_filter(‘gettext_wc-vendors’, ‘wcv_change_vendor_search_placeholder’, 10, 3); function wcv_change_vendor_search_placeholder( $translation, $text, $domain ) { if ($text === ‘Search for a vendor’ ) { $translation = ‘New text search for vendor’; // Change this text here. } return $translation; }Continue reading
add_action(‘admin_head’, ‘show_link_assistant_suggestions’); function show_link_assistant_suggestions() { echo ‘ ‘; }Continue reading
add_filter( ‘aioseo_schema_output’, ‘add_author_name_when_missing’ ); function add_author_name_when_missing( $schema ) { foreach ( $schema as &$schemaItem ) { if ( isset($schemaItem[‘@type’]) && ‘Organization’ === $schemaItem[‘@type’] ) { if(!isset($schemaItem[‘image’][‘@type’])){ $schemaItem[‘image’][‘@type’] = ‘ImageObject’; } } } return $schema; }Continue reading
/** * MB: * Replace button text cart. */ add_filter( ‘woocommerce_product_single_add_to_cart_text’, ‘woo_custom_cart_button_text’ ); // 2.1 + function woo_custom_cart_button_text() { return __( ‘In winkelwagen’, ‘woocommerce’ ); } add_filter( ‘woocommerce_product_add_to_cart_text’, ‘woo_archive_custom_cart_button_text’ ); // 2.1 + function woo_archive_custom_cart_button_text() { return __( ‘In winkelwagen’,…Continue reading
// Bestelnotities aanpassen add_filter( ‘woocommerce_checkout_fields’ , ‘theme_override_checkout_notes_fields’ ); // Our hooked in function – $fields is passed via the filter! function theme_override_checkout_notes_fields( $fields ) { $fields[‘order’][‘order_comments’][‘placeholder’] = ‘Opmerkingen over je bestelling…’; $fields[‘order’][‘order_comments’][‘label’] = ‘Opmerkingen’; return $fields; }Continue reading
/** * Override loop template and show quantities next to add to cart buttons */ add_filter( ‘woocommerce_loop_add_to_cart_link’, ‘quantity_inputs_for_woocommerce_loop_add_to_cart_link’, 10, 2 ); function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) { if ( $product && $product->is_type( ‘simple’ ) && $product->is_purchasable() && $product->is_in_stock() && !…Continue reading
add_filter( ‘woocommerce_sale_flash’, ‘ts_rename_sale_badge’, 10 ); function ts_rename_sale_badge() { return ‘Sale!‘; }Continue reading
add_filter( ‘aioseo_robots_meta’, ‘aioseo_filter_robots_meta’ ); function aioseo_filter_robots_meta( $attributes ) { $attributes[‘max-video-preview’] = ‘max-video-preview: 0’; return $attributes; }Continue reading