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
Member Badges on a Table Layout
The Code Recipe
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