Skip to content

Instantly share code, notes, and snippets.

@muhfaris
Last active August 20, 2016 16:56
Show Gist options
  • Save muhfaris/46a6adbb7eb7275b3c93f0da5032ad5c to your computer and use it in GitHub Desktop.
Save muhfaris/46a6adbb7eb7275b3c93f0da5032ad5c to your computer and use it in GitHub Desktop.
Solved error T Function plugin error in wordpress
/*
@author by Faris
@php version php 5.4.24
@wordpress 4.5
@plugin FL3R FeelBox Version 8.0
Error
Parse error: syntax error, unexpected T_FUNCTION in /fl3r-feelbox/feelbox-admin.php on line 246
*/
/*
error at line 246
....
/* Register the widget */
add_action( 'widgets_init', function(){
register_widget( 'feelbox_Widget' );
});
...
*/
change to ..
add_action( 'widgets_init', create_function( '', 'register_widget( "feelbox_Widget" );'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment