Advertisements

_register_widget_update_callback

Definition:
function _register_widget_update_callback($id_base, $update_callback, $options = array() {}

Parameters

  • $id_base
  • $update_callback
  • $options

Source code

function _register_widget_update_callback($id_base, $update_callback, $options = array()) {

	global $wp_registered_widget_updates;



	if ( isset($wp_registered_widget_updates[$id_base]) ) {

		if ( empty($update_callback) )

			unset($wp_registered_widget_updates[$id_base]);

		return;

	}



	$widget = array(

		'callback' => $update_callback,

		'params' => array_slice(func_get_args(), 3)

	);



	$widget = array_merge($widget, $options);

	$wp_registered_widget_updates[$id_base] = $widget;

}

4363

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: