Automattic\WooCommerce\Admin\Features\PaymentGatewaySuggestions
Init::should_display
Check if suggestions should be shown in the settings screen.
Method of the class: Init{}
Hooks from the method
Returns
true|false.
Usage
$result = Init::should_display();
Init::should_display() Init::should display code WC 10.7.0
public static function should_display() {
if ( 'yes' === get_option( self::RECOMMENDED_PAYMENT_PLUGINS_DISMISS_OPTION, 'no' ) ) {
return false;
}
if ( 'no' === get_option( 'woocommerce_show_marketplace_suggestions', 'yes' ) ) {
return false;
}
return apply_filters( 'woocommerce_allow_payment_recommendations', true );
}