I'm getting the error
Parse error: syntax error, unexpected '}' in /var/www/humanityx/wp-content/themes/wordpress-bootstrap-master/functions.php on line 1127
/* Display the post meta box. */
function smashing_post_class_meta_box( $object, $box ) {
?>
<?php wp_nonce_field( basename( __FILE__ ), 'smashing_post_class_nonce' ); ?>
<p>
<a class="post-btn-blue">Button</a>
<br />
<span class="short-blue">[buttonblue]Link Text[/buttonblue]</span>
<br />
</p>
<?php
}
I run the whole code in PHP Code checker and there is no problem. Also PHPStorm is not viewing any error.
I have PHP 7.1
Just my two cents.....
In the function 'smashing_add_post_meta_boxes' you set the callback 'smashing_post_class_meta_box'.
According to the WordPress codex:
$callback (callable) (Required) Function that fills the box with the desired content. The function should echo its output.
When I look at 'smashing_post_class_meta_box' the function perhaps does not really 'echo' anything and therefore gives unexpected output resulting in the unexpected '}' not picked up by PHPStorm?
Like I said, not sure, could not test, but wanted to help.