Inputo icon
eCommerce & WooCommerce

Inputo hooks reference

Inputo 1.3.0 has 15 actions and 18 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.

functions.phpyour child theme
// Run your own code when Inputo fires an action
add_action( 'inputo_nyp_admin_heading_chips', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Inputo is about to use
add_filter( 'inputo_nyp_widget_args', function( $merge, $product ) {
	// Change $merge here.
	return $merge;
}, 10, 2 );

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/class-inputo-nyp-frontend.php line 159 · used in 2 places
    /**
     * Filter everything the price box template receives.
     */
    apply_filters( 'inputo_nyp_widget_args', array_merge( array( 'product' => $product, 'uid' => 'inputo-nyp-' . $product->get_id() . '-' . wp_unique_id(), 'variable' => $variable, 'thresholds' => $thresholds, 'settings' => Inputo_NYP_Settings::all(), 'format' => Inputo_NYP_Price::format(), 'value' => $posted, 'rejected' => '' !== $posted, 'config' => $config, 'name' => $name, ), (array) $extra ), $product );
  • admin/class-inputo-nyp-admin.php line 537
    /**
     * Fires after a field's control, for custom field types.
     */
    do_action( "inputo_nyp_admin_field_{$type}", $key, $field, $value );
  • admin/views/page-settings.php line 39
    /**
     * Fires after the version chip in the screen heading.
     */
    do_action( 'inputo_nyp_admin_heading_chips' );
  • admin/class-inputo-nyp-admin.php line 368
    /**
     * Fires after the settings page assets are queued.
     */
    do_action( 'inputo_nyp_admin_page_assets', $tab );
  • includes/class-inputo-nyp-product.php line 403
    /**
     * Filter whether a product may be taken for nothing.
     */
    apply_filters( 'inputo_nyp_allows_free', $free, $product );
  • includes/class-inputo-nyp-price.php line 124
    /**
     * Filter an amount on its way from the stored base to what the shopper sees.
     */
    apply_filters( 'inputo_nyp_amount_to_display', $display, $product, $amount );
  • includes/class-inputo-nyp-price.php line 152
    /**
     * Filter an amount the shopper typed on its way to the stored base.
     */
    apply_filters( 'inputo_nyp_amount_to_stored', $amount, $product );
  • includes/class-inputo-nyp-product.php line 247
    /**
     * Filter the percentages used for amounts a product leaves blank.
     */
    apply_filters( 'inputo_nyp_default_percentages', array( 'min' => (float) Inputo_NYP_Settings::get( 'min_pct' ), 'suggested' => (float) Inputo_NYP_Settings::get( 'suggested_pct' ), 'generous' => (float) Inputo_NYP_Settings::get( 'generous_pct' ), 'max' => (float) Inputo_NYP_Settings::get( 'max_pct' ), ), $product );
  • admin/class-inputo-nyp-docs.php line 267
    /**
     * Filter the documentation sections.
     */
    apply_filters( 'inputo_nyp_docs_sections', $sections );
  • includes/class-inputo-nyp-frontend.php line 83
    /**
     * Fires after the storefront assets are queued.
     */
    do_action( 'inputo_nyp_enqueue_assets' );
  • includes/class-inputo-nyp-product.php line 133
    /**
     * Filter whether a product takes a price the customer names.
     */
    apply_filters( 'inputo_nyp_is_enabled', self::is_switched_on( $product ), $product );
  • admin/class-inputo-nyp-admin.php line 207
    /**
     * Filter the SQL condition that marks a product as named price in the product
     * list filter.
     */
    apply_filters( 'inputo_nyp_list_filter_named_sql', $named );
  • includes/class-inputo-nyp-plugin.php line 70
    /**
     * Fires once the plugin has loaded every class.
     */
    do_action( 'inputo_nyp_loaded' );
  • includes/class-inputo-nyp-cart.php line 374
    /**
     * Fires after a named price was recorded on an order line.
     */
    do_action( 'inputo_nyp_order_line_recorded', $order_item, $values );
  • includes/class-inputo-nyp-cart.php line 225
    /**
     * Fires after a cart item's product took its named amount as price.
     */
    do_action( 'inputo_nyp_price_applied', $item['data'], (float) $item[ self::KEY ]['stored'], $item );
  • includes/class-inputo-nyp-frontend.php line 444
    /**
     * Filter the wording of the price line near the title and in product lists.
     */
    apply_filters( 'inputo_nyp_price_texts', array( 'field_label' => (string) Inputo_NYP_Settings::get( 'field_label' ), 'suggested_text' => (string) Inputo_NYP_Settings::get( 'suggested_text' ), 'from_text' => (string) Inputo_NYP_Settings::get( 'from_text' ), ), $product );
  • admin/class-inputo-nyp-product-panel.php line 201
    /**
     * Fires at the end of the Name your price tab.
     */
    do_action( 'inputo_nyp_product_panel_after', $product );
  • admin/class-inputo-nyp-product-panel.php line 74
    /**
     * Filter the product types the Name your price tab shows for.
     */
    apply_filters( 'inputo_nyp_product_panel_classes', array( 'simple' => array( 'show_if_simple' ), 'variable' => array( 'show_if_variable' ), ) );
  • includes/class-inputo-nyp-frontend.php line 58
    /**
     * Fires after the storefront assets are registered.
     */
    do_action( 'inputo_nyp_register_assets' );
  • admin/class-inputo-nyp-product-panel.php line 280
    /**
     * Fires while a product's named price fields are saved.
     */
    do_action( 'inputo_nyp_save_product', $product );
  • admin/class-inputo-nyp-product-panel.php line 391
    /**
     * Fires while a variation's named price fields are saved.
     */
    do_action( 'inputo_nyp_save_variation', $variation, $i );
  • admin/class-inputo-nyp-admin.php line 434
    /**
     * Fires after a settings tab was saved.
     */
    do_action( 'inputo_nyp_settings_saved', $tab, $input );
  • includes/class-inputo-nyp-settings.php line 56
    /**
     * Filter the settings schema.
     */
    apply_filters( 'inputo_nyp_settings_schema', self::base_schema() );
  • includes/class-inputo-nyp-product.php line 227
    /**
     * Filter the amounts that guide the customer, in the stored base.
     */
    apply_filters( 'inputo_nyp_thresholds', $amounts, $product );
  • includes/class-inputo-nyp-install.php line 61
    /**
     * Fires after the plugin was updated to a new version.
     */
    do_action( 'inputo_nyp_upgraded', $stored );
  • includes/class-inputo-nyp-product.php line 374
    /**
     * Filter the result of checking a named price.
     */
    apply_filters( 'inputo_nyp_validate_price', $result, $raw, $product );
  • includes/class-inputo-nyp-frontend.php line 256
    /**
     * Filter the named price data sent to the script for one variation.
     */
    apply_filters( 'inputo_nyp_variation_data', array( 'thresholds' => Inputo_NYP_Product::display_thresholds( $variation ), 'allowFree' => Inputo_NYP_Product::allows_free( $variation ), ), $variation, $parent );
  • templates/price-input.php line 142
    /**
     * Fires below the price field.
     */
    do_action( 'inputo_nyp_widget_after_field', $inputo_nyp['product'], $inputo_nyp );
  • templates/price-input.php line 95
    /**
     * Fires above the price field.
     */
    do_action( 'inputo_nyp_widget_before_field', $inputo_nyp['product'], $inputo_nyp );
  • includes/class-inputo-nyp-price.php line 182
    /**
     * This filter is documented in woocommerce/includes/wc-product-functions.php
     */
    apply_filters( 'woocommerce_adjust_non_base_location_prices', true );
  • includes/class-inputo-nyp-product.php line 47
    apply_filters( 'inputo_nyp_product_meta_keys', array( self::META_ENABLED, self::META_MIN, self::META_SUGGESTED, self::META_GENEROUS, self::META_MAX ) );
  • includes/class-inputo-nyp-product.php line 80
    apply_filters( 'inputo_nyp_supported_types', array( 'simple', 'variation' ) );
  • includes/class-inputo-nyp-frontend.php line 218
    apply_filters( 'inputo_nyp_widget_config', $config, $product );

Generated from Inputo'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: