apply_filters( 'lp__admin_view_args/view={view}', $args )
Allow filter for specific admin view arguments 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 view arguments for a specific admin view using the lp__admin_view_args/view={view} filter:
// Add the filter hook for customizing admin view arguments for a specific admin view
add_filter( 'lp__admin_view_args/view=your-admin-view', function ( $args ) {
// Customize the arguments for the views of the 'your-admin-view' admin view
$args['view_title'] = 'View Title';
// Return the modified admin view arguments
return $args;
});
After applying this customization, the views within the specified admin view (‘your-admin-view’) will have their arguments updated or modified based on the modifications made inside the filter callback function.