Orphans 3.5.1 has 7 actions and 29 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.
// Run your own code when Orphans fires an action
add_action( 'iworks/options/show_page/build_options/after', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value Orphans is about to use
add_filter( 'iworks_rate_set_custom_time', function( $time ) {
// Change $time here.
return $time;
}, 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
-
{$filter_name}_data
filter/** * add extra options, maybe dynamic? */ apply_filters( "{$filter_name}_data", $radio_options, $option ); -
iworks_rate_set_custom_time
filter/** * change time by filter */ apply_filters( 'iworks_rate_set_custom_time', time() ); -
iworks_rate_plugin_data
filter/** * Change plugin data. */ apply_filters( 'iworks_rate_plugin_data', $plugin ); -
/** * 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 ); -
/** * 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() ); -
/** * 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 ); -
orphan_allowed_filters
filter/** * Filter allowed filters. */ apply_filters( 'orphan_allowed_filters', array( 'the_title' => array( 'priority' => PHP_INT_MAX, 'accepted_args' => 2, ), 'the_excerpt' => array( 'priority' => PHP_INT_MAX, 'accepted_args' => 1, ), 'the_content' => array( 'priority' => PHP_INT_MAX, 'accepted_args' => 1, ), 'comment_text' => array( 'priority' => PHP_INT_MAX, 'accepted_args' => 1, ), 'widget_title' => array( 'priority' => PHP_INT_MAX, 'accepted_args' => 1, ), 'widget_te... ); -
orphan_get_post_types
filter/** * Since 2.6.8 */ apply_filters( 'orphan_get_post_types', array( 'post' => __( 'Posts', 'sierotki' ), 'page' => __( 'Pages', 'sierotki' ), ) ); -
orphan_replace_acf
filter/** * Replace in ACF field? */ apply_filters( 'orphan_replace_acf', true, $value, $post_id, $field ); -
orphan_replace_gettext
filter/** * Replace in gettext? */ apply_filters( 'orphan_replace_gettext', true, $translation, $text, $domain ); -
orphan_skip_replacement
filter/** * Filter to allow skip replacement. */ apply_filters( 'orphan_skip_replacement', false ); -
qm/start
action/** * Query Monitor profiling */ do_action( 'qm/start', 'orphans_indicator_options' ); -
qm/stop
action/** * Query Monitor profiling */ do_action( 'qm/stop', 'orphans_indicator_options' ); -
wpml_current_language
filter/** * apply other rules only for Polish language */ apply_filters( 'wpml_current_language', get_locale() ); -
iworks_options_callback
filterapply_filters( 'iworks_options_callback', $callback, $data, $this->options ); -
iworks_options_capability
filterapply_filters( 'iworks_options_capability', 'manage_options', 'settings' ); -
{$filter_name}_content
filterapply_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 ); -
iworks_options_icon_url
filterapply_filters( 'iworks_options_icon_url', $data['icon_url'], $data ); -
iworks_options_nonce_name
filterapply_filters( 'iworks_options_nonce_name', 'iworks_options' ); -
iworks_orphans_capability
filterapply_filters_deprecated( 'iworks_orphans_capability', array( $capability ), '3.6.0', 'iworks/orphans/capability' ); -
iworks_rate_assistance
filterapply_filters( 'iworks_rate_assistance', '', 'sierotki' ); -
iworks_rate_love
filterapply_filters( 'iworks_rate_love', '', 'sierotki' ); -
apply_filters( 'iworks_rate_notice_logo_style', '', $plugin ); -
apply_filters( "iworks_rate_settings_page_url_{$slug}", null ); -
iworks-register-plugin
actiondo_action( 'iworks-register-plugin', plugin_basename( $this->plugin_file ), __( 'Orphans', 'sierotki' ), 'sierotki' ); -
apply_filters( 'iworks/options/wp_kses_allowed_html', wp_parse_args( $tags, wp_kses_allowed_html( 'post' ) ) ); -
iworks/orphans/capability
filterapply_filters( 'iworks/orphans/capability', 'manage_options' ); -
apply_filters( 'orphans_indicator_options_cached', $cached );
Generated from Orphans's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: