woocommerce_allow_marketplace_suggestions

woocommerce_allow_marketplace_suggestions

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_allow_marketplace_suggestions') is found 3 times:

  • /includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php line 187
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
            return false;
        }
     
        // User can disabled all suggestions via filter.
        return apply_filters( 'woocommerce_allow_marketplace_suggestions', true );
    }
     
    /**
     * Pull suggestion data from options. This is retrieved from a remote endpoint.
     *
     * @return array of json API data
  • /src/Admin/API/OnboardingThemes.php line 219
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
         * User can disable all suggestions via filter.
         *
         * @since 8.3.0
         */
        ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ||
        get_option( 'woocommerce_show_marketplace_suggestions', 'yes' ) === 'no'
    ) {
     
        /**
         * Filter the onboarding recommended themes response.
         *
  • /src/Internal/Admin/WcPayWelcomePage.php line 277
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    * User can disable all suggestions via filter.
     *
     * @since 3.6.0
     */
    if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {
        return false;
    }
     
    $incentive = $this->get_incentive();
    if ( empty( $incentive ) ) {
        return false;