A list of filter hooks available in Memberlite to allow you to modify the appearance of specific theme elements via custom functions.
Table of contents
- memberlite_defaults
- memberlite_banner_show
- memberlite_masthead_content
- memberlite_back_to_top
- memberlite_header_post_name
- memberlite_footer_post_name
- memberlite_custom_header_args
- memberlite_show_header_right
- memberlite_columns_ratio
- memberlite_get_page_title
- memberlite_get_page_description
- memberlite_is_blog
- memberlite_get_widget_areas
- memberlite_show_breadcrumbs
- memberlite_hide_home_breadcrumb
- memberlite_should_show_banner_image
- memberlite_get_banner_image
- memberlite_content_width
- memberlite_custom_background_args
- memberlite_show_author_avatar
- memberlite_avatar_size
- memberlite_loop_images_post_types
- memberlite_show_register_link
- memberlite_login_redirect_to
- memberlite_logout_redirect_to
- memberlite_get_sidebar
- memberlite_nav_menu_submenu_pagemenuid
- memberlite_excerpt_larger
- memberlite_get_entry_meta
- memberlite_color_schemes
memberlite_defaults
Modify any default setting, custom CSS selectors, or add new options to default settings.
apply_filters( 'memberlite_defaults', array $memberlite_defaults );
Parameters
$memberlite_defaults: array; The array of default theme settings.
memberlite_banner_show
Toggle the display of the masthead.
apply_filters( 'memberlite_banner_show', bool true );
Parameters
$show: bool; Whether to display the masthead. Defaulttrue.
memberlite_masthead_content
Filter the output of the entire content of the masthead area.
apply_filters( 'memberlite_masthead_content', string $content );
Parameters
$content: string; The content of the masthead area.
memberlite_back_to_top
Filter the text or icon displayed in the “Back to Top” inline link that appears on the bottom right of Memberlite’s default footer.
apply_filters( 'memberlite_back_to_top', string $content );
Parameters
$content: string; The text or icon displayed in the “Back to Top” link.
memberlite_header_post_name
Filters the resolved header post_name before it is used.
apply_filters( 'memberlite_header_post_name', string $post_name );
Parameters
$post_name: string; The resolved post_name, or ‘0’ for the default header.
memberlite_footer_post_name
Filters the resolved footer post_name before it is used.
apply_filters( 'memberlite_footer_post_name', string $post_name );
Parameters
$post_name: string; The resolved post_name, or ‘0’ for the default footer.
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 );
Parameters
$args: array; The custom header arguments.
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 );
Parameters
$show_header_right: bool; Whether to show the right column area of the header.
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 );
Parameters
$r: int; The columns ratio on a 12-column scale.$location: string; The target location. Acceptsheader-right,header-left,masthead, orsidebar. Leave empty to target the main content area.
memberlite_get_page_title
Adjust the page title output on archives, the blog, the search results page, the 404 page, the masthead, and page banners or add additional content to the default title area.
apply_filters( 'memberlite_get_page_title', string $page_title_html );
Parameters
$page_title_html: string; The page title HTML output in the masthead.
memberlite_get_page_description
Adjust the archive description output or add additional content.
apply_filters( 'memberlite_get_page_description', string $page_description_html );
Parameters
$page_description_html: string; The page title HTML output in the masthead.
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 );
Parameters
$is_blog: string; The value indicating whether the current content is treated as a blog page.
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 );
Parameters
$widget_areas: array; The widget areas available in the theme.
memberlite_show_breadcrumbs
Use a custom function to toggle the display of your site’s breadcrumbs.
apply_filters( 'memberlite_show_breadcrumbs', bool true );
Parameters
$show: bool; Whether to display the breadcrumbs. Defaulttrue.
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 );
Parameters
$hide: bool; Whether to hide the “Home” link in the breadcrumbs. Defaultfalse.
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 );
Parameters
$r: bool; Whether the banner image should be shown for the post.$post_id: int; The ID of the post being evaluated.
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 );
Parameters
$memberlite_banner_image: string; The banner image HTML.$attachment_id: int; The image attachment ID.$size: string|array; The image size.$icon: bool; Whether the image should be treated as an icon.$attr: string|array; Query string or array of attributes for the image.$post_id: int; The ID of the post.
memberlite_content_width
Set or adjust the default content width (in pixels) for your primary content area.
apply_filters( 'memberlite_content_width', int $width );
Parameters
$width: int; The default content width in pixels.
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 );
Parameters
$args: array; The custom background arguments.
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 );
Parameters
$post_types: bool|array; A boolean to toggle the avatar, or an array of post types to show the avatar for on single post pages.
memberlite_avatar_size
Adjust the default avatar size (80px square).
apply_filters( 'memberlite_avatar_size', int $memberlite_avatar_size );
Parameters
$memberlite_avatar_size: int; The avatar size in pixels. Default80.
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 );
Parameters
$post_types: array; The post types to show the featured image for in post excerpts.
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 );
Parameters
$show_register_link: bool; Whether to display the “Register” link in the Member Menu area.
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 );
Parameters
$redirect_to: string; The URL to redirect to for “Log In” links. Defaults to the last page from the session.
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 );
Parameters
$redirect_to: string; The URL to redirect to for “Log Out” links. Defaults to the last page from the session.
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 );
Parameters
$name: int; The identifier of the sidebar to use.
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 );
Parameters
$pagemenuid: int; The ID of the top level page used to generate the submenu.$ancestors: array; The page’s ancestor IDs.
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 );
Parameters
$memberlite_excerpt_larger: bool; Whether to use the enlarged/enhanced excerpt text for a single post.
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 );
Parameters
$meta: string; The entry meta HTML output.$post: object; The post object.$location: string; The location of the entry meta. Acceptsbeforeorafter.
memberlite_color_schemes
Adjust, remove, or add additional color schemes for your site. These color schemes will appear in the Customizer under Appearance > Customize > Colors. The return of this filter is an array where you can pass the name of your custom color scheme and an array of HEX colors:
$my_scheme = array(
'label' => __( 'My Custom Scheme', 'my-text-domain' ),
'colors' => array(
'header_textcolor' => '000000',
'background_color' => '000000',
'bgcolor_header' => '000000',
'bgcolor_site_navigation' => '000000',
'color_site_navigation' => '000000',
'color_text' => '000000',
'color_link' => '000000',
'color_meta_link' => '000000',
'color_primary' => '000000',
'color_secondary' => '000000',
'color_action' => '000000',
'color_button' => '000000',
'bgcolor_page_masthead' => '000000',
'color_page_masthead' => '000000',
'bgcolor_footer_widgets' => '000000',
'color_footer_widgets' => '000000',
'color_borders' => '000000',
),
);
add_filter( 'memberlite_color_schemes', function( array $schemes ) use ( $my_scheme ): array {
$schemes['my_custom_scheme'] = $my_scheme;
return $schemes;
} );
Parameters
$color_schemes: array; An array with the name of your color scheme, and an array of HEX color values in the order shown above. You do not need to include the#in your HEX color values.
Get Support From Our Team of Experts
For more help with this PMPro feature, check out our Support Page with three ways to get support as a free or premium member.
Last updated on June 25, 2026

