Documentation

This commit is contained in:
Tetrakern 2023-09-17 18:21:46 +02:00
parent 0577cc40f4
commit 2b9f92b202
5 changed files with 15 additions and 0 deletions

View File

@ -5,6 +5,7 @@
* @package WordPress
* @subpackage Fictioneer
* @since 4.6
* @see fictioneer_clause_sticky_stories()
*/
?>

View File

@ -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;

View File

@ -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.

View File

@ -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.

View File

@ -9,6 +9,7 @@
* @package WordPress
* @subpackage Fictioneer
* @since 3.0
* @see fictioneer_clause_sticky_stories()
*/
?>