Метод | Описание | |
---|---|---|
actionLoopEnd ( WP_Query $query ) | Make sure the correct blog is restored. | |
actionLoopStart ( WP_Query $query ) | Ensure we've started a loop before we allow ourselves to change the blog. | |
actionPreGetPosts ( WP_Query $query ) | Disables cache_results, adds header. | |
actionThePost ( array $post ) | Switch to the correct site if the post site id is different than the actual one. | |
filterFoundPostsQuery ( string $sql, WP_Query $query ) : string | Remove the found_rows from the SQL Query. | |
filterPostsRequest ( string $request, WP_Query $query ) : string | Filter query string used for get_posts(). Search for posts and save for later. | |
filterThePosts ( array $posts, WP_Query $query ) : array |
public static actionLoopEnd ( WP_Query $query ) | ||
$query | WP_Query |
public static actionLoopStart ( WP_Query $query ) | ||
$query | WP_Query |
public static actionPreGetPosts ( WP_Query $query ) | ||
$query | WP_Query |
public static actionThePost ( array $post ) | ||
$post | array |
public static filterFoundPostsQuery ( string $sql, WP_Query $query ) : string | ||
$sql | string | |
$query | WP_Query | |
Результат | string |
public static filterPostsRequest ( string $request, WP_Query $query ) : string | ||
$request | string | |
$query | WP_Query | |
Результат | string |
public static filterThePosts ( array $posts, WP_Query $query ) : array | ||
$posts | array | |
$query | WP_Query | |
Результат | array |