mardi 31 mars 2015

Echo variable from frontend in widget dashboard form

I create a WordPress widget and want to echo $widget_id variable inside



function form($instance);


to be visible inside WP dashboard. Variable exists http://ift.tt/1n7vqxu and is echoed in frontend using



function widget( $args, $instance )


without issues. Is that possible? (when I try to echo variable I get notice that variable is undefined, and it is not displayed)


Aucun commentaire:

Enregistrer un commentaire