A list of filter hooks available in Memberlite to allow you to modify the appearance of specific theme elements via custom functions.
memberlite_defaults
Modify any default setting, custom CSS selectors, or add new options to default settings.
apply_filters( 'memberlite_defaults', array $memberlite_defaults );
memberlite_banner_show
Toggle the display of the masthead.
apply_filters( 'memberlite_banner_show', bool true );
memberlite_masthead_content
Filter the output of the entire content of the masthead area.
apply_filters( 'memberlite_masthead_content', string $content );
memberlite_back_to_top
Filter the text or icon displayed in the “Back to Top” link at the bottom right footer area.
apply_filters( 'memberlite_back_to_top', string $content );
memberlite_custom_header_args
Modify the default arguments of the custom header. Refer to the full documentation on Custom Headers in the WordPress Theme Handbook for available defaults.
apply_filters( 'memberlite_custom_header_args', array $args );
memberlite_show_header_right
Filter to hide or show the right column area of the header.
apply_filters( 'memberlite_show_header_right', bool $show_header_right );
memberlite_columns_ratio
Adjust the columns ratio on a 12-column scale for your site’s header, masthead, or primary content area. Available locations include “header-right”, “header-left”, “masthead”, and “sidebar”. Do not specify a location to target the main content area.
apply_filters( 'memberlite_columns_ratio', int $r, string $location );
memberlite_page_title
Adjust the page title output in the masthead or add additional content to the default title area.
apply_filters( 'memberlite_page_title', string $page_title_html );
memberlite_is_blog
A helper filter that aggregates all loop pages for “blog”-like content. Use this filter to specify additional content types that should return “true” as blog pages or remove some content types from the array.
apply_filters( 'memberlite_is_blog', string $is_blog );
memberlite_get_widget_areas
An array of widget_areas available in the theme or extended by the use of the Custom Sidebars.
apply_filters( 'memberlite_get_widget_areas', array $widget_areas );
memberlite_show_breadcrumbs
Use a custom function to toggle the display of your site’s breadcrumbs.
apply_filters( 'memberlite_show_breadcrumbs', bool true );
memberlite_hide_home_breadcrumb
Filter to hide only the “Home” link in the string of breadcrumbs generated by the theme.
apply_filters( 'memberlite_hide_home_breadcrumb', bool false );
memberlite_should_show_banner_image
Filter whether the banner image should be shown or not for the given post.
apply_filters( 'memberlite_should_show_banner_image', bool $r, $post_id );
memberlite_get_banner_image
Get the post thumbnail image src and allow filtering.
apply_filters( 'memberlite_get_banner_image', $memberlite_banner_image, $attachment_id, $size, $icon, $attr, $post_id );
memberlite_banner_image_src
Filter the source and size of the image to be used as the banner image.
apply_filters( 'memberlite_banner_image_src', string $memberlite_banner_image_src, string $size );
memberlite_content_width
Set or adjust the default content width (in pixels) for your primary content area.
apply_filters( 'memberlite_content_width', int $width );
memberlite_custom_background_args
Modify the default arguments of the custom background. Refer to the full documentation on Custom Background in the WordPress Codex for available defaults.
apply_filters( 'memberlite_custom_background_args', array $args );
memberlite_show_author_avatar
Filter to hide avatars in the post entry header. Accepts a bool value or an array of $post_types
to show the avatar for on single post page.
apply_filters( 'memberlite_show_author_avatar', bool|array $post_types );
memberlite_avatar_size
Adjust the default avatar size (80px square).
apply_filters( 'memberlite_avatar_size', int $memberlite_avatar_size );
memberlite_loop_images_post_types
Filter to specify what post types to include a block image for based on theme setting. Accepts an array of $post_types
to show the featured image in post excerpts.
apply_filters( 'memberlite_loop_images_post_types', array $post_types );
memberlite_show_register_link
Toggle the display of the “Register” link in the Member Menu area enabled via Appearance > Customize > Show Login/Member Info in Header.
apply_filters( 'memberlite_show_register_link', bool $show_register_link );
memberlite_login_redirect_to
Set the redirect_to
URL to use for “Log In” links. Default is the last page from the session.
apply_filters( 'memberlite_login_redirect_to', $redirect_to );
memberlite_logout_redirect_to
Set the redirect_to
URL to use for “Log Out” links. Default is the last page from the session.
apply_filters( 'memberlite_logout_redirect_to', $redirect_to );
memberlite_get_sidebar
Filter to modify which sidebar is used, allowing templates and child themes to modify theme settings via custom code.
apply_filters( 'memberlite_get_sidebar', int $name );
memberlite_nav_menu_submenu_pagemenuid
Filter to adjust the top level page to generate the submenu on pages when showing the generate subpage menu.
apply_filters( 'memberlite_nav_menu_submenu_pagemenuid', int $pagemenuid, array $ancestors );
memberlite_excerpt_larger
Filter to turn off the enlarged/enhanced excerpt text for a single post.
apply_filters( 'memberlite_excerpt_larger', bool $memberlite_excerpt_larger );
memberlite_get_entry_meta
Adjust the output of the post’s entry meta to be displayed in the masthead title area or below the post content in the loop or on the single post view. The $location attribute of the filter accepts “before” or “after”.
apply_filters( 'memberlite_get_entry_meta', string $meta, object $post, string $location );
memberlite_color_schemes
Adjust or remove included color schemes or add additional color schemes for your site. The return of this filter is an array of arrays of color scheme HEX colors in the format:
$my_scheme = array(
'scheme_name' => array(
'Header Text Color',
'Background Color',
'Header Background Color',
'Primary Navigation Background Color',
'Primary Navigation Link Color',
'Text Color',
'Link Color',
'Meta Link Color',
'Primary Color',
'Secondary Color',
'Action Color',
'Default Button Color',
'Page Masthead Text Color',
'Page Masthead Background Color',
'Footer Widgets Text Color',
'Footer Widgets Background Color',
),
);
apply_filters( 'memberlite_color_schemes', array( $my_scheme ) );
Last updated on March 27, 2025