DROVNE Rocca 0.2.0 has 10 actions and 2 filters, read directly from its source code on Nov 19, 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.
// Run your own code when DROVNE Rocca fires an action
add_action( 'drovne_rc_2fa_failed', function( $ID ) {
// Your code runs here.
}, 10, 1 );
// Change a value DROVNE Rocca is about to use
add_filter( 'drovne_rc_admin_capability', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
/** * Fires when a wrong two-factor code is entered. */ do_action( 'drovne_rc_2fa_failed', $user->ID ); -
/** * Fires when two-factor authentication is removed from an account. */ do_action( 'drovne_rc_2fa_disabled', $user_id ); -
/** * Fires when a user sets up two-factor authentication. */ do_action( 'drovne_rc_2fa_enabled', $user_id ); -
/** * Filters the capability needed to use the admin pages. */ apply_filters( 'drovne_rc_admin_capability', 'manage_options' ); -
/** * Fires when an address is blocked automatically. */ do_action( 'drovne_rc_ban', $ip, $reason, $minutes ); -
/** * Fires when a file scan ends. */ do_action( 'drovne_rc_file_scan_done', self::counts() ); -
/** * Fires when a request matches a firewall rule, before it is blocked. */ do_action( 'drovne_rc_firewall_match', $rule, $ip, $block ); -
/** * Fires when an address is locked out. */ do_action( 'drovne_rc_lockout', Ip_Range::unpack( $packed ), $until, $lockouts ); -
/** * Fires on an error when the WooCommerce logger is not available. */ do_action( 'drovne_rc_log_error', $message, $context ); -
/** * Fires when a session ends after inactivity. */ do_action( 'drovne_rc_session_idle', $user_id ); -
/** * This filter is documented in wp-login.php */ apply_filters( 'login_redirect', '' !== $requested ? $requested : admin_url(), $requested, $user ); -
/** * This action is documented in wp-includes/user.php */ do_action( 'wp_login', $user->user_login, $user );
Generated from DROVNE Rocca'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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: