register_sidebar_widget


register_sidebar_widget ( $name, $output_callback, $classname = '', $params )

Parameters:
  • (string|int) name Widget ID.
  • (callable) output_callback Run when widget is called.
  • (string) classname Optional. Classname widget option. Default empty.
  • (mixed) params Widget parameters.
See:
Defined at:

Description

Register widget for sidebar with backward compatibility.Allows $name to be an array that accepts either three elements to grab the first element and the third for the name or just uses the first element of the array for the name. Passes to wp_register_sidebar_widget() after argument list and backward compatibility is complete.

Related Functions

unregister_sidebar_widget, wp_register_sidebar_widget, wp_unregister_sidebar_widget, register_sidebar, register_sidebars

Top Google Results

User discussions

wpseek mobile