Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_the_excerpt [ WordPress Function ]

get_the_excerpt ( $deprecated = '' )
Parameters:
  • (mixed) $deprecated Not used.
Returns:
  • (string)
Defined at:



Retrieve the post excerpt.

Source


<?php
function get_the_excerpt$deprecated '' ) {
    if ( !empty( 
$deprecated ) )
        
_deprecated_argument__FUNCTION__'2.3' );

    global 
$post;
    
$output $post->post_excerpt;
    if ( 
post_password_required($post) ) {
        
$output __('There is no excerpt because this is a protected post.');
        return 
$output;
    }

    return 
apply_filters('get_the_excerpt'$output);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics