wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_the_author_posts › WordPress Function

Da1.5.0
Deprecaton/a
get_the_author_posts ( Nessun parametro )
Ritorna:
  • (int) The number of posts by the author.
Definito a:
Codex:

Retrieves the number of posts by the author of the current post.



Sorgenti

function get_the_author_posts() {
	$post = get_post();
	if ( ! $post ) {
		return 0;
	}
	return count_user_posts( $post->post_author, $post->post_type );
}