Action
rpress_before_category_list
Fires before the category list in the menu sidebar.
Runs inside the sidebar categories container, before the category heading and list are printed. It is output even when the category list is empty, and not at all when the category menu is disabled in settings.
Example#
add_action( 'rpress_before_category_list', 'my_before_category_list' );
function my_before_category_list() {
echo '<div class="my-cat-note">' . esc_html__( 'Browse by category', 'my-textdomain' ) . '</div>';
}
Notes#
Fired from both the default and the modern pack category templates.
Source#
Fired from:
templates/packs/modern/rpress-get-categories.php(line 36)templates/rpress-get-categories.php(line 30)
See also#
Was this page helpful?
