Changeset 14183 for sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/user.php
- Timestamp:
- 11/20/2024 09:31:05 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/user.php
r13790 r14183 76 76 77 77 /** 78 * Returns a count of photos published by a user on this calendar day. 79 * 80 * @param int $user_id Optional. The user ID. If not defined, assumes global 81 * author. Default false. 82 * @return int 83 */ 84 public static function count_published_photos_for_today( $user_id = false ) { 78 * Returns a count of photos of a given post status(es) by a user on this calendar day. 79 * 80 * @param string|string[] $post_status Optional. The post status(es) of photos to find. 81 * Default 'publish'. 82 * @param int $user_id Optional. The user ID. If not defined, assumes 83 * global author. Default false. 84 * @return int 85 */ 86 public static function count_photos_for_today( $post_status = 'publish', $user_id = false ) { 85 87 if ( ! $user_id ) { 86 88 global $authordata; … … 99 101 $args = [ 100 102 'post_type' => Registrations::get_post_type(), 101 'post_status' => 'publish',103 'post_status' => $post_status, 102 104 'author' => $user_id, 103 105 'date_query' => [
Note: See TracChangeset
for help on using the changeset viewer.