Last active
August 20, 2016 16:56
-
-
Save muhfaris/46a6adbb7eb7275b3c93f0da5032ad5c to your computer and use it in GitHub Desktop.
Solved error T Function plugin error in wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@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