Cannot activate. Syntax Error after updating to v3.0
-
Hi,
I activated the plugin from 2.7 to 3.0
Now I can’t activate it anymore:
Parse error: syntax error, unexpected ‘[‘ in /home/content/52/9335952/html/sngdev/wp-content/plugins/dd-lastviewed/last-viewed.php on line 37
add_action( ‘customize_preview_init’, [ $this, ‘my_preview_js’ ] );
Error on that line.
Is there something wrong? Should it be array( $this, ‘my_preview_js’) rather than solid brackets?
You’re plugin is really great. Need to resolve this.
Let me know.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Cannot activate. Syntax Error after updating to v3.0’ is closed to new replies.