Why is the wc_square_synced public?
-
This is an internal taxonomy that should not be publicly accessible. We’re seeing /yes/ in our breadcrumbs and URLS are publicly viewable like /?taxonomy=wc_square_synced&term=yes
I’m currently using this to force it to false:
/** * WooCommerce Square taxonomy is public by default, * this filter forces public to false. * * @return array */ add_filter( 'register_taxonomy_args', function( $args, $taxonomy, $object_type ) { if ( 'wc_square_synced' === $taxonomy ) { $args['public'] = false; } return $args; }, 10, 3 );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Why is the wc_square_synced public?’ is closed to new replies.