apply_filters( 'lp__admin_view_args/{admin_page}/{view}', $args)
Allow filter for admin views arguments of specific admin page and view during its preparation for registration.
Plugin
Namespace
Launchpad
Parameters
array
$args
Admin view arguments
Return
array
Filtered admin view arguments
Example
Here’s how you can customize the admin sub-view arguments for a specific admin page and view using the lp__admin_view_args/{admin_page}/{view} filter:
// Add the filter hook for customizing admin view arguments
add_filter( 'lp__admin_view_args/your-admin-page/your-view', function ( $args ) {
// Customize the arguments for the 'your-admin-page' admin page and 'your-view' view
$args['view_title'] = 'View Title';
// Return the modified admin view arguments
return $args;
});
After applying this customization, the specified view (‘your-view’) will have its arguments updated or modified based on the modifications made inside the filter callback function.