aioseo_sitemap_authors

aioseo_sitemap_authors

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.7.5.1

apply_filters('aioseo_sitemap_authors') is found 1 times:

  • /app/Common/Sitemap/Content.php line 510
    		}
    
    		// 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' )