22/**
33 * @package The_SEO_Framework\Compat\Plugin\WooCommerce
44 * @subpackage The_SEO_Framework\Compatibility
5+ * @access private
56 */
67
78namespace The_SEO_Framework ;
3839 * @since 4.1.4 1. Now unbinds wc_page_noindex action.
3940 * 2. Now unbinds wc_page_no_robots filter.
4041 * 3. Now modifies the SEO Bar.
41- * @access private
4242 */
4343function _init_wc_compat () {
4444 // Adjust the product link acknowledging the primary category.
@@ -57,7 +57,6 @@ function _init_wc_compat() {
5757 * Helper function for other methods to determine if there's a shop ID.
5858 *
5959 * @since 5.0.0
60- * @access private
6160 *
6261 * @return int The shop page ID. 0 on failure.
6362 */
@@ -79,7 +78,6 @@ function _get_shop_page_id() {
7978 * Helper function for other methods to determine if we're dealing with a shop.
8079 *
8180 * @since 4.2.0
82- * @access private
8381 *
8482 * @param int|WP_Post|null $post Post ID or post object.
8583 * @return bool
@@ -106,7 +104,6 @@ function _is_shop( $post = null ) {
106104 *
107105 * @hook the_seo_framework_real_id 10
108106 * @since 4.0.5
109- * @access private
110107 *
111108 * @param int $id The current ID.
112109 * @return int
@@ -121,7 +118,6 @@ function _set_real_id_wc_shop( $id ) {
121118 *
122119 * @hook the_seo_framework_is_singular_archive 10
123120 * @since 4.0.5
124- * @access private
125121 *
126122 * @param bool $is_singular_archive Whether the post ID is a singular archive.
127123 * @param int|null $id The supplied post ID. Null when in the loop.
@@ -138,7 +134,6 @@ function _set_shop_singular_archive( $is_singular_archive, $id ) {
138134 * @hook the_seo_framework_is_shop 10
139135 * @since 4.0.5
140136 * @since 4.1.4 Now handles the assertion fully.
141- * @access private
142137 * @TODO is this redundant for TSF? -> yes. lol. It's used nowhere, for now...
143138 *
144139 * @param bool $is_shop Whether this is a shop page.
@@ -177,7 +172,6 @@ function _set_wc_is_product( $is_product, $post ) {
177172 * @hook the_seo_framework_is_product_admin 10
178173 * @since 4.0.5
179174 * @since 4.1.4 Now handles the assertion fully.
180- * @access private
181175 * @TODO is this redundant for TSF? Yup. This very much is because we do not show an interface for OG types.
182176 *
183177 * @param bool $is_product_admin Whether this is a product admin query.
@@ -196,7 +190,6 @@ function _set_wc_is_product_admin( $is_product_admin ) {
196190 * @hook the_seo_framework_robots_meta_array 10
197191 * @since 4.1.4
198192 * @since 4.2.8 Now uses `Query::is_singular()` instead of `is_singular()` (for debug support).
199- * @access private
200193 *
201194 * @param array $meta {
202195 * The parsed robots meta.
@@ -261,7 +254,6 @@ function _set_wc_noindex_defaults( $meta, $args, $options ) {
261254 *
262255 * @hook the_seo_framework_seo_bar 10
263256 * @since 4.1.4
264- * @access private
265257 *
266258 * @param string $interpreter The interpreter class name.
267259 * @param object $builder The builder's class instance.
@@ -297,7 +289,6 @@ function _assert_wc_noindex_defaults_seo_bar( $interpreter, $builder ) {
297289 * @since 4.0.5 (introduced @ 4.0.0, renamed to prevent conflict).
298290 * @since 4.2.0 Now supports the `$args['pta']` index.
299291 * @since 4.2.8 Fixed the taxonomy query for the admin area.
300- * @access private
301292 *
302293 * @param array $params {
303294 * The image generation parameters.
@@ -347,7 +338,6 @@ function _adjust_wc_image_generation_params( $params, $args ) {
347338 * @hook the_seo_framework_public_post_type_archives 10
348339 * @since 4.0.0
349340 * @since 4.2.0 Now supports the `$args['pta']` index.
350- * @access private
351341 * @generator
352342 *
353343 * @param array|null $args The query arguments. Accepts 'id', 'tax', 'pta', and 'uid'.
@@ -396,7 +386,6 @@ function _get_product_gallery_image_details( $args = null, $size = 'full' ) {
396386 * Generates image URL and ID from the WooCommerce product category thumbnail entries.
397387 *
398388 * @since 4.0.0
399- * @access private
400389 * @generator
401390 *
402391 * @param array|null $args The query arguments. Accepts 'id', 'tax', 'pta', and 'uid'.
@@ -436,7 +425,6 @@ function _get_product_category_thumbnail_image_details( $args = null, $size = 'f
436425 *
437426 * @hook the_seo_framework_public_post_type_archives 10
438427 * @since 4.2.8
439- * @access private
440428 *
441429 * @param string[] $post_types The public post type archive names.
442430 * @return string[] The filtered post type archive names.
@@ -455,7 +443,6 @@ function _filter_public_wc_post_type_archives( $post_types ) {
455443 *
456444 * @filter the_seo_framework_generated_archive_title_items 10
457445 * @since 5.0.0
458- * @access private
459446 *
460447 * @param String[title,prefix,title_without_prefix] $items The generated archive title items.
461448 * @param \WP_Term|\WP_User|\WP_Post_Type|null $object The archive object.
0 commit comments