add_filter( 'woocommerce_product_tabs', 'remove_product_tabs', 98 );
function remove_product_tabs( $tabs ) {
if ( ! is_user_logged_in() ) {
unset( $tabs['custom_download'] ); // unset( $tabs['description'] );
}
return $tabs;
}
Unfortunately the code doesn’t work in any way. I absolutely need to have one tab visible only to logged in users. So far I have created the ACF field and it works, but I would like to have all the tabs in one place. custom tab is title my tab for example ‘downloads’. The plugin is great. Please Help.
]]>I want to unset menu items in the GEAR ICON of the profile and in the members directory list when the logged-in user is an Admin.
I want to unset those items :
– Deactivate this account
– Login as this user
I could use this hook but I don’t know which name I should give to the menu item to unset it :
function remove_menu_cancel_button( $items = array() ) {
if ( isset( $items['deactivate'] ) ) {
unset( $items['deactivate'] );
}
return $items;
}
add_filter( 'um_myprofile_edit_menu_items', 'remove_menu_cancel_button', 12, 1 );
Can you tell me what name to enter in this function to really unset those items ?
]]>add_filter( ‘submit_job_form_fields’, ‘remove_job_form_fields’ );
function remove_job_form_fields( $fields ) {
unset($fields[‘company’][‘company_logo’]);
unset($fields[‘company’][‘company_tagline’]);
unset($fields[‘company’][‘company_twitter’]);
unset($fields[‘company’][‘company_video’]);
return $fields;
}
However, it did not remove any of those fields. What I am doing wrong?
]]>I faced an issue after activating the plugin on my website. I have alot of categories on my website with 400+ products each and this plugin is amazing to sort the products you want. However, in a couple of these categories, it shows less that 5 products even though I didn’t rearrange that category of products. So there are many of them missing and I don’t get why. When I deactivate the plug-in, it comes back to normaland also sometimes it does that unexpectedly like in a day it will work fine and next day it will show less products again. How I fix this please help me out. Thanks in adavance.
]]>/**
* Remove product data tabs
*/
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs[‘description’] ); // Remove the description tab
unset( $tabs[‘reviews’] ); // Remove the reviews tab
unset( $tabs[‘additional_information’] ); // Remove the additional information tab
return $tabs;
}
And although it’s active the code doesn’t work at all. I’ve already tried putting // before the unset of the tab I want to remove and it stays the same. I’ve tried it without // too, and nothing changes. I’m using the “Hello” theme. Can it interfere? Or some other plugin? What could be the problem?
]]>/**
* Remove product data tabs
*/
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs[‘description’] ); // Remove the description tab
unset( $tabs[‘reviews’] ); // Remove the reviews tab
unset( $tabs[‘additional_information’] ); // Remove the additional information tab
return $tabs;
}
And although it’s active the code doesn’t work at all. I’ve already tried putting // before the unset of the tab I want to remove and it stays the same. I’ve tried it without // too, and nothing changes. What could be the problem?
]]>This code:
function remove_billing_fields( $fields = array() ) {
unset($fields['billing_address_2']);
unset($fields['billing_state']);
unset($fields['billing_city']);
unset($fields['billing_postcode']);
unset($fields['billing_country']);
return $fields;
}
add_filter('woocommerce_billing_fields', 'remove_billing_fields');
To show fields to customers I have removed some of them from code.
But there no fields showing. Also after cache has cleared.
Please. What I have to fix?
Thanks for any help!
]]>Im am trying to conditionally remove the EU VAT field from the checkout.
I have a function that looks if products in a certain category are in the cart.
If products in that category are in the cart, it returns true, if not, false.
Now I want to use that to remove the he EU VAT field.
Like so:
/**
* Conditionally remove a checkout field based on products in the cart
*/
function my_wc_remove_checkout_field( $fields ) {
if ( ! my_wc_category_is_in_the_cart() ) {
unset( $fields['billing']['billing_company'] );
unset( $fields['billing']['billing_eu_vat_number'] );
}
return $fields;
}
add_filter( 'woocommerce_checkout_fields' , 'my_wc_remove_checkout_field',9999 );
This works for the standard WOO fields, like Company came in the above example.
But not for the EU VAT field.
I looked into the plugin and my naming “billing_eu_vat_number” seems correct.
But using “unset” on Booster generated fields seems to do nothing.
What am I missing?
Thanks
]]>`
js?v=3.exp&language=de&key=[...]:67 InvalidValueError: setIcon: not a string; and not an instance of PinView; and no url property; and no path property _.fe @ js?v=3.exp&language=de&key=[...]:67 _.ie @ js?v=3.exp&language=de&key=[...]:68 (anonymous) @ js?v=3.exp&language=de&key=[...]:90 _.M.setValues @ js?v=3.exp&language=de&key=[...]:214 sg @ js?v=3.exp&language=de&key=[...]:95 _.Ug @ js?v=3.exp&language=de&key=[...]:101 j.createMarker @ gmaps.min.js?ver=0.4.25:1 j.addMarker @ gmaps.min.js?ver=0.4.25:1 (anonymous) @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 h @ script.min.js?ver=5.7:12 u.onload.u.onerror.u.<computed> @ script.min.js?ver=5.7:12 load (async) v @ script.min.js?ver=5.7:12 e @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 d @ script.min.js?ver=5.7:12 p @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 setTimeout (async) g @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 h @ script.min.js?ver=5.7:12 u.onload.u.onerror.u.<computed> @ script.min.js?ver=5.7:12 load (async) v @ script.min.js?ver=5.7:12 e @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 d @ script.min.js?ver=5.7:12 p @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 setTimeout (async) g @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 each @ jquery.js?ver=3.5.1:381 each @ jquery.js?ver=3.5.1:203 value @ script.min.js?ver=5.7:12 value @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 requestAnimationFrame (async) (anonymous) @ script.min.js?ver=5.7:12 f @ script.min.js?ver=5.7:12 u @ script.min.js?ver=5.7:12 js?v=3.exp&language=de&key=[...]:67 InvalidValueError: setIcon: not a string; and not an instance of PinView; and no url property; and no path property
`
The map blocks still appear to work properly, but the warning indicates that a variable is not checked in the block script. ]]>
Enabled Browser Cache;
For “Media and Other files” Enabled Set Last-Modified Header, Set expires header, Set Cache control header, Set entity tag (ETag), and Enabled HTTP (gzip) compression.
Enabled and configured CDN (Test passed) with SSL
Purged all caches using W3 and Amazon CloudFront (Reset Cache)
Issue is cannot get the images (.jpg, png files) to display CACHE TTL – Expire headers not displaying.
Reviewed .htaccess file and W3 shows unset tags for
<FilesMatch “\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$”>
FileETag MTime Size
<IfModule mod_headers.c>
Header set Pragma “public”
Header append Cache-Control “public”
Header unset Set-Cookie
</IfModule>
</FilesMatch>
<FilesMatch “\.(html|htm|rtf|rtx|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|TXT|XSD|XSL|XML)$”>
FileETag MTime Size
<IfModule mod_headers.c>
Header set Pragma “public”
Header append Cache-Control “public”
Header unset Last-Modified
</IfModule>
</FilesMatch>
<FilesMatch “\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|WEBP|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|_TTF|WAV|WMA|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW|ZIP)$”>
FileETag MTime Size
<IfModule mod_headers.c>
Header set Pragma “public”
Header append Cache-Control “public”
Header unset Set-Cookie
</IfModule>
</FilesMatch>
<FilesMatch “\.(bmp|class|doc|docx|eot|exe|ico|json|mdb|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|JSON|MDB|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX|SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$”>
<IfModule mod_headers.c>
Header unset Last-Modified
</IfModule>
What am I missing for Settings in W3 Total Cache that will allow the images to display “efficient cache policy”
Can provide .htaccess code for # BEGIN W3TC Browser Cache # END W3TC Browser Cache
# BEGIN W3TC CDN # END W3TC CDN