Answer the question
In order to leave comments, you need to log in
Parse error: syntax error, unexpected What's wrong?
Friends!
I am superficially familiar with PHP (to say the least).
Before, God had mercy on problems, but here comes the black hour \order-comment-filed.php on line 16
It's clear that the trouble lies in the 16th line of the specified file's code.
It
's terrible that I don't understand what's wrong
.
add_action
( 'comment_form_before', function()
{
if( class_exists( 'WPSE_Rearrange_Comment_Fields' ) )
{
$fields = apply_filters(
'wpse_comment_fields',
[ 'comment', 'author', 'url', 'email', 'submit' ] (16th line)
);
$o = new WPSE_Rearrange_Comment_fields;
$o->set_fields( $fields )
->init();
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question