aioseo_sitemap_authors
aioseo_sitemap_authors
Appears in: all-in-one-seo-pack.4.4.4, all-in-one-seo-pack.4.4.5.1, all-in-one-seo-pack.4.4.6, all-in-one-seo-pack.4.4.8, all-in-one-seo-pack.4.4.9.1, all-in-one-seo-pack.4.4.9.2, all-in-one-seo-pack.4.5.0, all-in-one-seo-pack.4.5.1.1, all-in-one-seo-pack.4.5.2.1, all-in-one-seo-pack.4.5.3.1, all-in-one-seo-pack.4.5.4, all-in-one-seo-pack.4.5.5, all-in-one-seo-pack.4.5.6, all-in-one-seo-pack.4.5.7.1, all-in-one-seo-pack.4.5.7.2, all-in-one-seo-pack.4.5.7.3, all-in-one-seo-pack.4.5.8, all-in-one-seo-pack.4.5.9.1, all-in-one-seo-pack.4.5.9.2, all-in-one-seo-pack.4.6.2, all-in-one-seo-pack.4.6.4, all-in-one-seo-pack.4.6.5, all-in-one-seo-pack.4.6.6, all-in-one-seo-pack.4.6.8.1, all-in-one-seo-pack.4.6.9.1, all-in-one-seo-pack.4.7.0, all-in-one-seo-pack.4.7.1.1, all-in-one-seo-pack.4.7.3, all-in-one-seo-pack.4.7.4.2
Hook Type: filter
Displaying hooks found in version: all-in-one-seo-pack.4.7.4.2apply_filters('aioseo_sitemap_authors') is found 1 times:
- /app/Common/Sitemap/Content.php line 482
} // Allow users to filter the authors in case their sites use a membership plugin or have custom code that affect the authors on their site. // e.g. there might be additional roles/conditions that need to be checked here. $authors = apply_filters( 'aioseo_sitemap_authors', [] ); if ( empty( $authors ) ) { $usersTableName = aioseo()->core->db->db->users; // We get the table name from WPDB since multisites share the same table. $authors = aioseo()->core->db->start( "$usersTableName as u", true ) ->select( 'u.ID as ID, u.user_nicename as nicename, MAX(p.post_modified_gmt) as lastModified' ) ->join( 'posts as p', 'u.ID = p.post_author' ) ->where( 'p.post_status', 'publish' )