Docs / Filter Reference / individual_file_action_locked

individual_file_action_locked

Description


The individual_file_action_locked filter is used to customize the action buttons shown for locked files in a package.

Parameters


Four parameters are passed to this hook.

Usage


<?php add_filter('individual_file_action_locked', 'my_individual_file_action_locked', 10, 4); ?>

Examples

<?php
add_filter('individual_file_action_locked', 'my_individual_file_action_locked', 10, 4);

function my_individual_file_action_locked($actions_locked, $ID, $sfile, $fileID) { 
    $actions_locked['locked_custom'] = 'Unlock Required';
    return $actions_locked;
}
?>
Last updated on January 26, 2026

Need Help?

Get support from our team or community forum.

Visit Support

Customization

Need custom features? We can help.

Request Quote