apply_filters( 'lp__admin_sub_view_args/{admin_page}/{view}/{sub_view}' )

Allows filtering of the arguments for admin sub-views associated with specific admin pages, views, and sub-views during its preparation for registration.


Plugin


Namespace

Launchpad


Parameters

array

$args

Admin sub view arguments


Return

array

Filtered admin sub view arguments


Example

Here’s how you can customize the admin sub view title for a specific admin page and view using the lp__admin_sub_view_args/{admin_page}/{view}/{sub_view} filter:

// Add the filter hook for customizing admin sub-view arguments
add_filter( 'lp__admin_sub_view_args/your-admin-page/your-view/your-sub-view', function ( $args ) {
    // Customize the arguments for 'your-sub-view' sub-view
    $args['sub_view_title'] = 'Sub View Title';

    // Return the modified admin sub-view arguments
    return $args;
});

After applying this customization, the specific admin sub-view will have its sub_view_title updated or modified based on the modifications made inside the filter callback function.

Related

Allow filter for specific admin pages.

Allow filter for specific admin pages arguments.

Allow filter for all admin sub views arguments.

Allow filter for admin views arguments of specific admin page and view.

Allow filter for admin sub views arguments of specific admin page.

Allow filter for specific admin sub view arguments.

Allow filter for admin sub view arguments of specific admin view.

Allow filter for admin sub views param.

Allow filter for admin sub views param of specific admin page.

Allow filter for admin sub views param of specific admin page and view.

Allow filter for admin sub views param of specific admin page view.

Allow filter for all admin toolbar arguments.

Allow filter for specific admin toolbar arguments.

Allow filter for all admin toolbar arguments.

Allow filter for specific admin toolbar arguments.

Allow filter for all admin views arguments.

Allow filter for admin views arguments of specific admin page and view.

Allow filter for admin views arguments of specific admin page.

Allow filter for specific admin view arguments.

Allow filter for all admin views param.

Allow filter for admin views param of specific admin page.

Allow filtering the button HTML text to render.

Allow filter for customizing the HTML items for contact details.

Allow filter for all field group arguments.

Allow filter for specific field group arguments.

Allow field value filter.

Allow filtering the link HTML text to render.

Allow filtering of template parts to be rendered on a page.

Allow filtering of template parts to be rendered on a page for a specific template.

Allow filtering of template parts to be rendered on a page for a specific template and type.

Allow filter to customize the option of submit button HTML.

Allow filter for the HTML structure of price.

Allow filter for the price HTML arguments.

Allow filter for customizing the HTML items for social media links.