This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function elementor_process_more_tag( $content ) { | |
| $post = get_post(); | |
| $content = str_replace( '<!--more-->', '<!--more-->', $content ); | |
| $parts = get_extended( $content ); | |
| if ( empty( $parts['extended'] ) ) { | |
| return $content; | |
| } | |
| if ( is_singular() ) { | |
| return $parts['main'] . '<div id="more-' . $post->ID . '"></div>' . $parts['extended']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'elementor/frontend/the_content', function ( $content ) { | |
| // custom code to filter paid membership pro | |
| $hasaccess = pmpro_has_membership_access( null, null, true ); | |
| if ( is_array( $hasaccess ) ) { | |
| //returned an array to give us the membership level values | |
| //$post_membership_levels_ids = $hasaccess[1]; //gives us all level ids | |
| //$post_membership_levels_names = $hasaccess[2]; //gives us the level names | |
| $hasaccess = $hasaccess[0]; | |
| } |
NewerOlder