Hello,
hope I’m not wrong with this post like I’m pretty new in WP and Page Builder use…
Problem:
it looks like the ‘update’ method can not really be used for custom widgets like the old_instance variable is not available.
In fact, after editing a widget from the Page Builder, it will launch the siteorigin_panels_process_raw_widgets function (autosave process ?) and use the update method:
$widgets[$i] = $the_widget->update( $widgets[$i], $widgets[$i] );
So no old instance available like both parameters are the same $widgets[$i] variable…
I found a (dirty and not secure) workaround for this issue, but maybe it can be fixed for future Page Builder releases.
An option to allow (or not) the autosave process would be probably the easiest solution or/and better allow to access the old_instance variable during the autosave process…
If my frenglish is not understandable, I can try to explain better… Just let me know. ;)
Thanks in advance for a short answer/info about this issue.
Cheers
Laurent
Any comment about ?
About an other minor thing I did a pull request on github… But no idea if it was a good idea or full useless to do it without asking you before…
Cheers
Laurent
This minor modif allow for example something like following…
Basic usage:
CSS rules allow different layout for each widget…
Advanced usage:
Using PHP/JS/CSS, different functions for each widget depending of users, like here
Admin view: All green => Can edit/remove/duplicate all widgets
Editor view: Can only green widget(s)
Up…
Hi Laurent,
Very sorry about the delay! I’m going to forward this to the development team to see if they have any idea.
Thanks Alex,
no problem with the delay, I can imagine days are just too short. ;)
Hi
any news about ?
Up again… ;)
Hi Laurent,
Ideally, could you please bump this? The developers will see that while only support people will see this.
Hi Alex,
one more time, thanks a lot for your great support here !!!
I missed you reported that on github, and will bump it (and maybe my pull request as well)… and continue to play with this great plugin.