Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Removing create_function from WordPress PHP Widget
function phpcodewidget_register_widgets() {
register_widget( 'PHP_Code_Widget' );
}
add_action('widgets_init', 'phpcodewidget_register_widgets' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment