Secure Copy Content Protection and Content Locking icon
Content & Editing

Secure Copy Content Protection and Content Locking hooks reference

  • By Ays Pro
  • v5.3.4 New
  • Updated

Secure Copy Content Protection and Content Locking 5.3.4 has 1 actions and 7 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Secure Copy Content Protection and Content Locking fires an action
add_action( 'upgrader_process_complete', function( $object, $options ) {
	// Your code runs here.
}, 10, 2 );

// Change a value Secure Copy Content Protection and Content Locking is about to use
add_filter( 'upgrader_clear_destination', function( $removed, $local_destination, $remote_destination, $args ) {
	// Change $removed here.
	return $removed;
}, 10, 4 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/admin/class-secure-copy-content-protection-upgrader.php line 512
    /**
     * Filter whether the upgrader cleared the destination.
     */
    apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] );
  • includes/admin/class-secure-copy-content-protection-upgrader.php line 94
    /**
     * Filter the package options before running an update.
     */
    apply_filters( 'upgrader_package_options', $options );
  • includes/admin/class-secure-copy-content-protection-upgrader.php line 569
    /**
     * Filter the installation response after the installation has finished.
     */
    apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result );
  • includes/admin/class-secure-copy-content-protection-upgrader.php line 287
    /**
     * Filters whether to return the package.
     */
    apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra );
  • includes/admin/class-secure-copy-content-protection-upgrader.php line 435
    /**
     * Filter the install response before the installation has started.
     */
    apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] );
  • includes/admin/class-secure-copy-content-protection-upgrader.php line 227
    /**
     * Fire when the upgrader process is complete.
     */
    do_action( 'upgrader_process_complete', $this, $options['hook_extra'] );
  • includes/admin/class-secure-copy-content-protection-upgrader.php line 469
    /**
     * Filter the source file location for the upgrade package.
     */
    apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] );
  • admin/partials/secure-copy-content-protection-admin-display.php line 237 · used in 2 places
    apply_filters( 'active_plugins', get_option('active_plugins') );

Generated from Secure Copy Content Protection and Content Locking's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: