Using the Sample Extension format, when I create or update controls, it seems I need to change the name of the shortcode and class in order for the changes to register with php.
Otherwise, $atts are updated in javascript, but in php, the old ones persist. Not sure what I'm doing wrong.
php version
PHP 7.1.16
Tailor version1.8.2
Using the Sample Extension format, when I create or update controls, it seems I need to change the name of the
shortcode
andclass
in order for the changes to register with php.Otherwise,
$atts
are updated in javascript, but in php, the old ones persist. Not sure what I'm doing wrong.Add new element with setting and control:
And the shortcode:
And register:
If I update the
title
control to say,heading
,$atts
still holdtitle
. I imagine it's something obvious.