unregister_widget [ WordPress Function ]
unregister_widget ( $widget_class )
| Parameters: |
|
| Uses: |
|
| See: |
|
| Defined at: |
|
Benzer Fonksiyonlar: register_widget, unregister_widget_control, unregister_sidebar_widget, unregister_sidebar, wp_unregister_widget_control
Unregister a widget
Unregisters a WP_Widget widget. Useful for unregistering default widgets. Run within a function hooked to the widgets_init action.
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/unregister widget « WordPress Codex
Description. Un-registers a widget. Usage. <?php unregister_widget( $ widget_class ) ?> Parameters. $widget_class: (object) The name of a class that extends ...
codex.wordpress.org - WordPress › Support » Unregister Widgets
Try this: add_action( 'widgets_init', 'my_unregister_widgets' ); function my_unregister_widgets() { unregister_widget( 'WP_Widget_Pages' ); unregister_widget( ...
wordpress.org - unregister_widget() not working for some widgets - WordPress
Member Posted 1 year ago #. I'm using the following code in functions.php to turn off a number of default widgets so that they do not appear in the admin tools: ...
wordpress.org - Deactivate WordPress Default Widgets - WP Engineer
Sep 2, 2009 ... The function unregister_widget() needs as parameters the class, therefore the code is working since version 2.8 only. In prior versions, Widgets ...
wpengineer.com