jeudi 2 juin 2016

Wordpress Custom Widget renders "1" on output

my Wordpress Custom Widget renders behind the output from the display() method a "1". I think it's because the echo is evaluated.

public function widget($args, $instance) {
    echo 'this is my output';
}

My output is the following

this is my output1

Anyone have a solution for that?

Thanks in advance!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire