| 237 | | $users_have_content = false; |
| 238 | | if ( $wpdb->get_var( "SELECT ID FROM {$wpdb->posts} WHERE post_author IN( " . implode( ',', $userids ) . ' ) LIMIT 1' ) ) { |
| 239 | | $users_have_content = true; |
| 240 | | } elseif ( $wpdb->get_var( "SELECT link_id FROM {$wpdb->links} WHERE link_owner IN( " . implode( ',', $userids ) . ' ) LIMIT 1' ) ) { |
| 241 | | $users_have_content = true; |
| | 237 | /** |
| | 238 | * Filter to setup $users_have_content, also known as the users have content flag, before WordPress default checks. |
| | 239 | * |
| | 240 | * @since ### |
| | 241 | * |
| | 242 | * @param boolean $users_have_content The flag for users have content. |
| | 243 | */ |
| | 244 | $users_have_content = apply_filters( 'users_have_content', false, $userids ); |
| | 245 | |
| | 246 | if ( ! $users_have_content ) { |
| | 247 | if ( $wpdb->get_var( "SELECT ID FROM {$wpdb->posts} WHERE post_author IN( " . implode( ',', $userids ) . ' ) LIMIT 1' ) ) { |
| | 248 | $users_have_content = true; |
| | 249 | } elseif ( $wpdb->get_var( "SELECT link_id FROM {$wpdb->links} WHERE link_owner IN( " . implode( ',', $userids ) . ' ) LIMIT 1' ) ) { |
| | 250 | $users_have_content = true; |
| | 251 | } |