• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Hooks / in_widget_form – action

Fires at the end of the widget control form. Use this hook to add extra fields to the widget form. The hook is only fired if the value passed to the ‘widget_form_callback’ hook is not false.

Note: If the widget has no form, the text echoed from the default form method can be hidden using CSS.

Parameters

.
( 2.8.0 ) . .
$this
( WP_Widget ) The widget instance (passed by reference). . . .
( null ) $return Return null if new fields are added. . . .
( array ) $instance An array of the widget’s settings. . . .
Hook name: in_widget_form
Hook type: action
Plugin ref: WordPress
Sourcefile:
File ref: WP_Widget::form_callback() – Generates the widget control form (Do NOT override).
Description: Fires at the end of the widget control form. Use this hook to add extra fields to the widget form. The hook is only fired if the value passed to the ‘widget_form_callback’ hook is not false.

Note: If the widget has no form, the text echoed from the default form method can be hidden using CSS.

Parameters:
Deprecated?: No
API Letters: F,I,W

Invokers

1 to 1 of 1
  • WP_Widget::form_callback() – Generates the widget control form (Do NOT override).

Implementers

    Published: 25th November 2019 | Last updated: 2nd April 2020

    Primary Sidebar

    Information

    Hook name: in_widget_form
    Hook type: action
    Plugin ref: WordPress
    Sourcefile:
    File ref: WP_Widget::form_callback() – Generates the widget control form (Do NOT override).
    Description: Fires at the end of the widget control form. Use this hook to add extra fields to the widget form. The hook is only fired if the value passed to the 'widget_form_callback' hook is not false. Note: If the widget has no form, the text echoed from the default form method can be hidden using CSS.
    Parameters:
    Deprecated?: No
    API Letters: F,I,W

    Footer

    WP-a2z
    WordPress core a2z
    WordPress core only
    WordPress 5.6
    WordPress a2z
    WordPress core a2z
    Genesis Theme Framework a2z
    Jetpack a2z
    WordPress develop tests
    Easy Digital Downloads a2z
    WooCommerce a2z
    Yoast SEO a2z
    WordPress Blocks

    Site:  core.wp-a2z.org
    © Copyright WP-a2z 2014-2021. All rights reserved.


    Website designed and developed by Herb Miller
    Proudly powered by WordPress and oik plugins

    • Home
    • Blog
    • Sitemap
    • Sites