WordPress at a glance
action is not described

in_widget_form action-hook . WP 2.8.0

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.


add_action( 'in_widget_form', 'action_function_name_4882', 10, 3 );
function action_function_name_4882( $this, $return, $instance ){
	// action...
The widget instance (passed by reference).
Return null if new fields are added.
An array of the widget's settings.

Список изменений

С версии 2.8.0 Введена.

Где вызывается хук

wp-includes/class-wp-widget.php 537
do_action_ref_array( 'in_widget_form', array( &$this, &$return, $instance ) );

Где используется хук в ядре WordPress

Использование не найдено.