Plugin Customization: Disabling choices of button design on Siteorigin Button Widget
Hi,
I would like to disable the choice of ‘atom’ and ‘ wire’ of button them on Siteorigin Button Widget.
I know I can directly modify the plugin code of so-widgets/widgets/button/button.php like below.
However, once the plugin is updated later, I need to re-modify them again.
Is there any better way to keep the modification even update happening?
Thank you and best regards,
Hideto
****** button.php ******
function get_widget_form() {
return array(
.
.
.
‘theme’ => array(
‘type’ => ‘select’,
‘label’ => __(‘Button theme’, ‘so-widgets-bundle’),
‘default’ => ‘atom’,
‘options’ => array(
//’atom’ => __(‘Atom’, ‘so-widgets-bundle’),
‘flat’ => __(‘Flat’, ‘so-widgets-bundle’),
//’wire’ => __(‘Wire’, ‘so-widgets-bundle’),
),
),
.
.
.
}
******************
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
2Hi Hideto,
This is possible by extending the widget.
Okay I’ll read though that and if I have a question, I’ll ask here.
Thanks for your help!
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.