Un motore di ricerca WordPress per sviluppatori e autori di temi



the_content ›

Da0.71
Deprecaton/a
the_content ( $more_link_text = null, $strip_teaser = false )
Parametri: (2)
  • (string) $more_link_text Optional. Content for when there is more text.
    Richiesto: No
    Default: null
  • (bool) $strip_teaser Optional. Strip teaser content before the more text. Default is false.
    Richiesto: No
    Default: false
Definito a:
Codex:

Display the post content.



Sorgenti

function the_content( $more_link_text = null, $strip_teaser = false ) {
	$content = get_the_content( $more_link_text, $strip_teaser );

	/**
	 * Filters the post content.
	 *
	 * @since 0.71
	 *
	 * @param string $content Content of the current post.
	 */
	$content = apply_filters( 'the_content', $content );
	$content = str_replace( ']]>', ']]>', $content );
	echo $content;
}