Orphans icon
Utilities

Orphans hooks reference

  • By iworks (Marcin Pietrzak)
  • v3.5.1 New
  • Updated

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.

functions.phpyour child theme
// 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

  • includes/iworks/options/options.php line 794 · used in 2 places
    /**
     * add extra options, maybe dynamic?
     */
    apply_filters( "{$filter_name}_data", $radio_options, $option );
  • includes/iworks/rate/rate.php line 514 · used in 2 places
    /**
     * change time by filter
     */
    apply_filters( 'iworks_rate_set_custom_time', time() );
  • includes/iworks/rate/rate.php line 696
    /**
     * Change plugin data.
     */
    apply_filters( 'iworks_rate_plugin_data', $plugin );
  • includes/iworks/options/options.php line 617
    /**
     * Allow to add code before a content of the TH HTML tag.
     */
    apply_filters( "iworks/options/filter/th/begin/{$option_name}", '', $option );
  • includes/iworks/options/options.php line 628
    /**
     * Allow to add code after a content of the TH HTML tag.
     */
    apply_filters( "iworks/options/filter/th/end/{$option_name}", '', $option );
  • includes/iworks/options/options.php line 1054
    /**
     * Allow to add code before the TR HTML tag.
     */
    apply_filters( "iworks/options/filter/tr/after/{$option_name}", '', $option );
  • includes/iworks/options/options.php line 597
    /**
     * Allow to add code before the TR HTML tag.
     */
    apply_filters( "iworks/options/filter/tr/before/{$option_name}", '', $option );
  • includes/iworks/options/options.php line 1769
    /**
     * Hook after build options
     */
    do_action( 'iworks/options/show_page/build_options/after', $this->get_option_function_name() );
  • includes/iworks/options/options.php line 1782
    /**
     * Hook after form
     */
    do_action( 'iworks/options/show_page/form/after', $this->get_option_function_name() );
  • includes/iworks/options/options.php line 1736
    /**
     * Hook before form
     */
    do_action( 'iworks/options/show_page/form/before', $this->get_option_function_name() );
  • includes/iworks/options/options.php line 1761
    /**
     * Hook before settings fields
     */
    do_action( 'iworks/options/show_page/settings_fields/before', $this->get_option_function_name() );
  • includes/iworks/options/options.php line 643
    /**
     * Allow to add code before a content of the TD HTML tag.
     */
    apply_filters( "iworks/options/td/begin/{$option_name}", '', $option );
  • includes/iworks/options/options.php line 1042
    /**
     * Allow to add code after a content of the TD HTML tag.
     */
    apply_filters( "iworks/options/td/end/{$option_name}", '', $option );
  • includes/iworks/class-iworks-orphan.php line 566
    /**
     * 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... );
  • etc/options.php line 146
    /**
     * Since 2.6.8
     */
    apply_filters( 'orphan_get_post_types', array( 'post' => __( 'Posts', 'sierotki' ), 'page' => __( 'Pages', 'sierotki' ), ) );
  • includes/iworks/class-iworks-orphan.php line 1097
    /**
     * Replace in ACF field?
     */
    apply_filters( 'orphan_replace_acf', true, $value, $post_id, $field );
  • includes/iworks/class-iworks-orphan.php line 1069
    /**
     * Replace in gettext?
     */
    apply_filters( 'orphan_replace_gettext', true, $translation, $text, $domain );
  • includes/iworks/class-iworks-orphan.php line 178
    /**
     * Filter to allow skip replacement.
     */
    apply_filters( 'orphan_skip_replacement', false );
  • qm/start

    action
    etc/options.php line 68
    /**
     * Query Monitor profiling
     */
    do_action( 'qm/start', 'orphans_indicator_options' );
  • qm/stop

    action
    etc/options.php line 433
    /**
     * Query Monitor profiling
     */
    do_action( 'qm/stop', 'orphans_indicator_options' );
  • includes/iworks/class-iworks-orphan.php line 250
    /**
     * apply other rules only for Polish language
     */
    apply_filters( 'wpml_current_language', get_locale() );
  • includes/iworks/options/options.php line 282 · used in 3 places
    apply_filters( 'iworks_options_callback', $callback, $data, $this->options );
  • includes/iworks/options/options.php line 280 · used in 3 places
    apply_filters( 'iworks_options_capability', 'manage_options', 'settings' );
  • includes/iworks/options/options.php line 795 · used in 2 places
    apply_filters( "{$filter_name}_content", null, $radio_options, $html_element_name, $option_name, $option_value );
  • includes/iworks/options/options.php line 864
    apply_filters( "iworks_options_{$option_name}_content", $select, $option['options'], $html_element_name, $option_name, $option_value );
  • includes/iworks/options/options.php line 294
    apply_filters( 'iworks_options_icon_url', $data['icon_url'], $data );
  • includes/iworks/options/options.php line 2523
    apply_filters( 'iworks_options_nonce_name', 'iworks_options' );
  • includes/iworks/class-iworks-orphan.php line 1283
    apply_filters_deprecated( 'iworks_orphans_capability', array( $capability ), '3.6.0', 'iworks/orphans/capability' );
  • etc/options.php line 488
    apply_filters( 'iworks_rate_assistance', '', 'sierotki' );
  • etc/options.php line 448
    apply_filters( 'iworks_rate_love', '', 'sierotki' );
  • includes/iworks/rate/rate.php line 636
    apply_filters( 'iworks_rate_notice_logo_style', '', $plugin );
  • includes/iworks/rate/rate.php line 154
    apply_filters( "iworks_rate_settings_page_url_{$slug}", null );
  • includes/iworks/class-iworks-orphan.php line 1309
    do_action( 'iworks-register-plugin', plugin_basename( $this->plugin_file ), __( 'Orphans', 'sierotki' ), 'sierotki' );
  • includes/iworks/options/options.php line 2717
    apply_filters( 'iworks/options/wp_kses_allowed_html', wp_parse_args( $tags, wp_kses_allowed_html( 'post' ) ) );
  • includes/iworks/class-iworks-orphan.php line 1275
    apply_filters( 'iworks/orphans/capability', 'manage_options' );
  • etc/options.php line 59
    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: