Created
January 16, 2019 18:52
-
-
Save greenhornet79/99d9f1c0fbb8c4bf409849da542f2a1f to your computer and use it in GitHub Desktop.
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
| <?php | |
| add_filter( 'leaky_paywall_content_access_description', 'zeen101_adjust_content_access_description', 10, 3 ); | |
| function zeen101_adjust_content_access_description( $content_access_description, $level, $level_id ) { | |
| switch ( $level_id ) { | |
| case 0: | |
| $output = '<ul>'; | |
| $output .= '<li>Gold Benfit #1</li>'; | |
| $output .= '<li>Gold Benefit #2</li>'; | |
| $output .= '<li>Gold Benefit #3</li>'; | |
| $output .= '</ul>'; | |
| break; | |
| case 1: | |
| $output = '<ul>'; | |
| $output .= '<li>Platinum Benfit #1</li>'; | |
| $output .= '<li>Platinum Benefit #2</li>'; | |
| $output .= '<li>Platinum Benefit #3</li>'; | |
| $output .= '</ul>'; | |
| break; | |
| default: | |
| $output = $content_access_description; | |
| break; | |
| } | |
| return $output; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment