get_bookmarks

get_bookmarks

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('get_bookmarks') is found 3 times:

  • /wp-includes/bookmark.php line 175
    			 *
    			 * @param array $bookmarks   List of the cached bookmarks.
    			 * @param array $parsed_args An array of bookmark query arguments.
    			 */
    			return apply_filters( 'get_bookmarks', $bookmarks, $parsed_args );
    		}
    	}
    
    	if ( ! is_array( $cache ) ) {
    		$cache = array();
    	}
    
  • /wp-includes/bookmark.php line 229
    		} else {
    			$cache[ $key ] = array();
    			wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
    			/** This filter is documented in wp-includes/bookmark.php */
    			return apply_filters( 'get_bookmarks', array(), $parsed_args );
    		}
    	}
    
    	$search = '';
    	if ( ! empty( $parsed_args['search'] ) ) {
    		$like   = '%' . $wpdb->esc_like( $parsed_args['search'] ) . '%';
    
  • /wp-includes/bookmark.php line 322
    		wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
    	}
    
    	/** This filter is documented in wp-includes/bookmark.php */
    	return apply_filters( 'get_bookmarks', $results, $parsed_args );
    }
    
    /**
     * Sanitizes all bookmark fields.
     *
     * @since 2.3.0