Quantcast
Channel: Code Recipe Posts for Extending Your Membership Site
Viewing all articles
Browse latest Browse all 326

Enhance Your Membership Levels Page with Member Badges

$
0
0

We’ve just added hooks to the Advanced Levels Page Shortcode Add On, allowing you to add unique content before and after the level information.

This recipe integrates the Member Badges Add On and displays the badge associated with each level in the output.


Member Badges on a Three Column Layout

The Code Recipe

This code recipe requires a PMPro Core Account or higher.

View Membership Options


Member Badges on a Table Layout

The Code Recipe

This code recipe requires a PMPro Core Account or higher.

View Membership Options


Available Hooks in the Advanced Levels Page Shortcode v.2.4+

Hooks for the “div” and “column” layouts:

do_action( 'pmproal_before_level', int $level_id, int string $layout );
do_action( 'pmproal_after_level', int $level_id, int string $layout );

Hooks for the “table” layout:

do_action( 'pmproal_extra_cols_before_header' );
do_action( 'pmproal_extra_cols_after_header' );
do_action( 'pmproal_extra_cols_before_body' );
do_action( 'pmproal_extra_cols_after_body' );

Note: hooks have not yet been added for the compare_table layout


Viewing all articles
Browse latest Browse all 326

Trending Articles