jetpack_wordads_abort

jetpack_wordads_abort

Hook Type: action

See hook in core

Displaying hooks found in version: jetpack.14.1

do_action('jetpack_wordads_abort') is found 4 times:

  • /jetpack_vendor/automattic/jetpack-wordads/src/initializers/class-initializer.php line 40
    			 * @since Jetpack 7.9.0
    			 * @param string $reason Reason for WordAds fallback.
    			 * @param mixed  $data   Data associated with the request, such as attempted search parameters.
    			 */
    			do_action( 'jetpack_wordads_abort', 'jetpack_wordads_init_wordads_package_filter', null );
    			return;
    		}
    
    		static::init_before_connection();
    
    		// Check whether WordAds should be initialized in the first place .
    
  • /jetpack_vendor/automattic/jetpack-wordads/src/initializers/class-initializer.php line 49
     
    		// Check whether WordAds should be initialized in the first place .
    		if ( ! static::is_connected() || ! static::is_wordads_supported() ) {
    			/** This filter is documented in search/src/initalizers/class-initalizer.php */
    			do_action( 'jetpack_wordads_abort', 'inactive', null );
    			return;
    		}
    
    		$blog_id = Helper::get_wpcom_site_id();
    		if ( ! $blog_id ) {
    			/** This filter is documented in search/src/initalizers/class-initalizer.php */
    
  • /jetpack_vendor/automattic/jetpack-wordads/src/initializers/class-initializer.php line 56
     
    		$blog_id = Helper::get_wpcom_site_id();
    		if ( ! $blog_id ) {
    			/** This filter is documented in search/src/initalizers/class-initalizer.php */
    			do_action( 'jetpack_wordads_abort', 'no_blog_id', null );
    			return;
    		}
    
    		if ( ! ( new Modules() )->is_active( Package::SLUG ) ) {
    			/** This filter is documented in search/src/initalizers/class-initalizer.php */
    			do_action( 'jetpack_wordads_abort', 'module_inactive', null );
    
  • /jetpack_vendor/automattic/jetpack-wordads/src/initializers/class-initializer.php line 62
    		}
    
    		if ( ! ( new Modules() )->is_active( Package::SLUG ) ) {
    			/** This filter is documented in search/src/initalizers/class-initalizer.php */
    			do_action( 'jetpack_wordads_abort', 'module_inactive', null );
    			return;
    		}
    
    		/**
    		 * Fires when the WordAds package has been initialized.
    		 *