Documentation
This commit is contained in:
parent
0577cc40f4
commit
2b9f92b202
@ -5,6 +5,7 @@
|
||||
* @package WordPress
|
||||
* @subpackage Fictioneer
|
||||
* @since 4.6
|
||||
* @see fictioneer_clause_sticky_stories()
|
||||
*/
|
||||
?>
|
||||
|
||||
|
@ -212,6 +212,17 @@ function fictioneer_exclude_protected_posts( $where = '' ) {
|
||||
// STICKY STORIES
|
||||
// =============================================================================
|
||||
|
||||
/**
|
||||
* Filter sticky stories to the top and account for missing meta fields
|
||||
*
|
||||
* @since 5.7.3
|
||||
*
|
||||
* @param array $clauses An associative array of WP Query SQL clauses.
|
||||
* @param WP_Query $wp_query The WP_Query instance.
|
||||
*
|
||||
* @return string The updated where statement.
|
||||
*/
|
||||
|
||||
function fictioneer_clause_sticky_stories( $clauses, $wp_query ) {
|
||||
global $wpdb;
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
* @package WordPress
|
||||
* @subpackage Fictioneer
|
||||
* @since 4.0
|
||||
* @see fictioneer_clause_sticky_stories()
|
||||
*
|
||||
* @internal $args['count'] Number of posts provided by the shortcode.
|
||||
* @internal $args['author'] Author provided by the shortcode.
|
||||
|
@ -7,6 +7,7 @@
|
||||
* @package WordPress
|
||||
* @subpackage Fictioneer
|
||||
* @since 4.0
|
||||
* @see fictioneer_clause_sticky_stories()
|
||||
*
|
||||
* @internal $args['count'] Number of posts provided by the shortcode.
|
||||
* @internal $args['author'] Author provided by the shortcode.
|
||||
|
@ -9,6 +9,7 @@
|
||||
* @package WordPress
|
||||
* @subpackage Fictioneer
|
||||
* @since 3.0
|
||||
* @see fictioneer_clause_sticky_stories()
|
||||
*/
|
||||
?>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user