LLMS_Shortcode_Membership_Link::get_default_content( $atts = array() )
Retrieves a string used for default content which is used if no content is supplied
Return Return
(string)
Source Source
File: includes/shortcodes/class.llms.shortcode.membership.link.php
protected function get_default_content( $atts = array() ) {
$default_content = 'publish' === get_post_status( $this->get_attribute( 'id' ) ) ? get_the_title( $this->get_attribute( 'id' ) ) : '';
return apply_filters( 'lifterlms_membership_link_text', $default_content, $this->get_attribute( 'id' ) );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.4.3 | Introduced. |