OPI Security Boost 1.4.0 has 4 actions and 25 filters, read directly from its source code on Nov 18, 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 OPI Security Boost fires an action
add_action( 'iworks/options/show_page/build_options/after', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value OPI Security Boost is about to use
add_filter( 'opi/security-boost/options/user_roles_to_reset', 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
-
/** * Roles to reset */ apply_filters( 'opi/security-boost/options/user_roles_to_reset', array() ); -
/** * add extra options, maybe dynamic? */ apply_filters( "{$filter_name}_data", $radio_options, $option ); -
/** * filter args */ apply_filters( 'opi/security-boost/privileges/args', $args ); -
/** * Allow to add code before a content of the TH HTML tag. */ apply_filters( "iworks/options/filter/th/begin/{$option_name}", '', $option ); -
/** * Allow to add code after a content of the TH HTML tag. */ apply_filters( "iworks/options/filter/th/end/{$option_name}", '', $option ); -
/** * Allow to add code before the TR HTML tag. */ apply_filters( "iworks/options/filter/tr/after/{$option_name}", '', $option ); -
/** * Allow to add code before the TR HTML tag. */ apply_filters( "iworks/options/filter/tr/before/{$option_name}", '', $option ); -
iworks/options/show_page/build_options/after
action Used by 13 plugins → Copy link Customise this hook/** * Hook after build options */ do_action( 'iworks/options/show_page/build_options/after', $this->get_option_function_name() ); -
/** * Hook after form */ do_action( 'iworks/options/show_page/form/after', $this->get_option_function_name() ); -
/** * Hook before form */ do_action( 'iworks/options/show_page/form/before', $this->get_option_function_name() ); -
iworks/options/show_page/settings_fields/before
action Used by 13 plugins → Copy link Customise this hook/** * Hook before settings fields */ do_action( 'iworks/options/show_page/settings_fields/before', $this->get_option_function_name() ); -
/** * Allow to add code before a content of the TD HTML tag. */ apply_filters( "iworks/options/td/begin/{$option_name}", '', $option ); -
/** * Allow to add code after a content of the TD HTML tag. */ apply_filters( "iworks/options/td/end/{$option_name}", '', $option ); -
/** * Filter the inactivity timeout in seconds. */ apply_filters( 'opi_security_boost_logout_inactive_timeout', $hours * HOUR_IN_SECONDS ); -
/** * Links info */ apply_filters( 'opi/security_boost/options/option/pgpkeytxt_links_info', '' ); -
/** * Links info */ apply_filters( 'opi/security_boost/options/option/securitytxt_links_info', '' ); -
/** * Options fields configuration */ apply_filters( 'opi/security_boost/options/options', array( array( 'type' => 'heading', 'label' => esc_html__( 'User Roles Reset', 'opi-security-boost' ), 'since' => '1.2.0', ), array( 'name' => 'user_roles_reset', 'type' => 'checkbox', 'th' => esc_html__( 'Allow to reset user roles', 'opi-security-boost' ), 'since' => '1.2.0', 'description' => esc_html__( 'When enabled, allows the plugin to automatically reset user roles to a safer default confi... ); -
/** * Args for WP_User_Query */ apply_filters( 'opi/security-boost/check/args', array( 'role__not_in' => $this->get_exclude_roles_array(), 'fields' => 'ID', 'meta_query' => array( array( 'key' => $this->user_meta_last_check, 'compare' => 'NOT EXISTS', ), ), 'number' => 10, 'orderby' => 'rand', ) ); -
apply_filters( 'iworks_options_callback', $callback, $data, $this->options ); -
apply_filters( 'iworks_options_capability', 'manage_options', 'settings' ); -
apply_filters( "{$filter_name}_content", null, $radio_options, $html_element_name, $option_name, $option_value ); -
apply_filters( "iworks_options_{$option_name}_content", $select, $option['options'], $html_element_name, $option_name, $option_value ); -
apply_filters( 'iworks_options_icon_url', $data['icon_url'], $data ); -
apply_filters( 'iworks_options_nonce_name', 'iworks_options' ); -
apply_filters( 'iworks/options/wp_kses_allowed_html', wp_parse_args( $tags, wp_kses_allowed_html( 'post' ) ) ); -
apply_filters( 'opi/security-boost/common-checkers/args', $args ); -
apply_filters( 'opi/security-boost/privileges/time', intval( $this->options->get_option( 'user_roles_reset_days' ) ) * DAY_IN_SECONDS ); -
apply_filters( 'opi/security-boost/users/roles_to_reset/get', $roles ); -
apply_filters( 'opi/security-boost/wp_user_query/role__not_in', array( 'administrator', 'subscriber', 'employer', 'awaiting-employer', 'unconfirmed-employer', 'customer', 'shop_manager', ) );
Generated from OPI Security Boost'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: