You appear to be a bot. Output may be restricted
Description
Set and retrieve the custom "read more" textWhenever we call bw_excerpt() call bw_more_text() to set the custom "read more" text The custom "read more" text can then be accessed using the same function when creating the read more link
Usage
$string = bw_more_text( $more_text, $atts );
Parameters
- $more_text
- ( string ) optional – the new value for the read more text
- $atts
- ( array ) optional – contains the default "read_more" text. This is null when setting and not null when retrieving
Returns
string the current value of $bw_more_text or the default value when nullSource
File name: oik/includes/bw_posts.phpLines:
1 to 14 of 14
function bw_more_text( $more_text=null, $atts=null ) { static $bw_more_text = null; if ( ( $atts !== null ) && !$bw_more_text ) { $bw_more = bw_array_get( $atts, "read_more", null ); if ( !$bw_more ) { $bw_more = __( "read more", "oik" ); } } else { $bw_more = $bw_more_text; } $bw_more_text = $more_text; bw_trace2( $bw_more, "bw_more", true, BW_TRACE_DEBUG ); return $bw_more ; }View on GitHub View on Trac