jetpack_show_promotions, true

jetpack_show_promotions, true

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_show_promotions, true') is found 5 times:

  • /_inc/lib/admin-pages/class-jetpack-redux-state-helper.php line 186
    				 * @since 4.8.0
    				 *
    				 * @param bool $are_promotions_active Status of promotions visibility. True by default.
    				 */
    				'showPromotions'             => apply_filters( 'jetpack_show_promotions', true ),
    				'plan'                       => Jetpack_Plan::get(),
    				'showBackups'                => Jetpack::show_backups_ui(),
    				'showScan'                   => Jetpack::show_scan_ui(),
    				'showRecommendations'        => Jetpack_Recommendations::is_enabled(),
    				/** This filter is documented in my-jetpack/src/class-initializer.php */
    				'showMyJetpack'              => My_Jetpack_Initializer::should_initialize(),
    
  • /class.jetpack-gutenberg.php line 312
    				 * @param boolean
    				 */
    				! apply_filters( 'jetpack_block_editor_enable_upgrade_nudge', false )
    				/** This filter is documented in _inc/lib/admin-pages/class.jetpack-react-page.php */
    				|| ! apply_filters( 'jetpack_show_promotions', true )
    			)
    		) {
    			// The block editor may apply an upgrade nudge if `missing_plan` is the reason.
    			// Add a descriptive suffix to disable behavior but provide informative reason.
    			$reason .= '__nudge_disabled';
    		}
    
  • /jetpack_vendor/automattic/jetpack-search/src/dashboard/class-initial-state.php line 71
    				 * Whether promotions are visible or not.
    				 *
    				 * @param bool $are_promotions_active Status of promotions visibility. True by default.
    				 */
    				'showPromotions'             => apply_filters( 'jetpack_show_promotions', true ),
    				'adminUrl'                   => esc_url( admin_url() ),
    				'readerChatGuidelinesUrl'    => $this->get_reader_chat_guidelines_url(),
    				'aiAgentAccessAvailable'     => $this->is_ai_agent_access_available(),
    				'aiAgentAccessGuidelinesUrl' => $this->get_ai_agent_access_guidelines_url(),
    				'blogId'                     => Jetpack_Options::get_option( 'id', 0 ),
    				'version'                    => Package::VERSION,
    
  • /modules/plugin-search.php line 26
    if (
    	is_admin() &&
    	Jetpack::is_connection_ready() &&
    	/** This filter is documented in _inc/lib/admin-pages/class.jetpack-react-page.php */
    	apply_filters( 'jetpack_show_promotions', true ) &&
    	// Disable feature hints when plugins cannot be installed.
    	! Constants::is_true( 'DISALLOW_FILE_MODS' ) &&
    	jetpack_is_psh_active()
    ) {
    	Jetpack_Plugin_Search::init();
    }
    
  • /modules/stats/class-jetpack-stats-upgrade-nudges.php line 546
    	 * @return void
    	 */
    	public static function render( $callback ) {
    		/** This filter is documented in _inc/lib/admin-pages/class.jetpack-react-page.php */
    		if ( 'stats_reports_page' !== $callback || ! apply_filters( 'jetpack_show_promotions', true ) || ! current_user_can( 'manage_options' ) ) {
    			return;
    		}
    
    		if ( self::has_complete_plan() ) {
    			return;
    		}