apply_filters( 'lp__admin_sub_view_args/{admin_page}/{view}', $args )
Allow filter for admin sub views arguments of specific admin page and view 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 sub-view using the lp__admin_sub_view_args/{admin_page}/{view} filter:
// Add the filter hook for customizing admin sub-view arguments
add_filter( 'lp__admin_sub_view_args/your-admin-page/your-view', function ( $args ) {
// Customize the arguments for the '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 specified sub-view (‘your-sub-view’) will have its sub_view_title updated or modified based on the modifications made inside the filter callback function.