jetpack_search_abort, no_search_results_array, $this->search_result

jetpack_search_abort, no_search_results_array, $this->search_result

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: jetpack.16.0.1

do_action('jetpack_search_abort, no_search_results_array, $this->search_result') is found 2 times:

  • /jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php line 454
     
    		$this->do_search( $query );
    
    		if ( ! is_array( $this->search_result ) ) {
    			do_action( 'jetpack_search_abort', 'no_search_results_array', $this->search_result );
    			return $posts;
    		}
    
    		// If no results, nothing to do.
    		if ( ! is_countable( $this->search_result['results']['hits'] ) ) {
    			return array();
    
  • /jetpack_vendor/automattic/jetpack-search/src/inline-search/class-inline-search.php line 121
     
    		$this->do_search( $query );
    
    		if ( ! is_array( $this->search_result ) ) {
    			do_action( 'jetpack_search_abort', 'no_search_results_array', $this->search_result );
    
    			return $posts;
    		}
    
    		// If no results, nothing to do.
    		if ( ! is_countable( $this->search_result['results'] ) ) {