Home>Support>modify_form not triggering after update?

modify_form not triggering after update?

Hi,
within a custom Widget i got a modify_form function. Since the latest update it stoppt working.

function modify_form( $form ) {
    $form['intro'] = array(
	'type' => 'checkbox',
	'label' => __('Intro Text', 'ngcore'),
    );
    return $form;
}

Does anything changed in the latest version?
Not even var_dump($form) is working.

Thanks for your help and this PlugIn!
Jan

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 6 days ago Alex S
    Hi, I Work Here

    Hi Jan,

    Based on a GitHub Report (specifically the follow-up comment left by Greg), modify_form() was unintentionally changed to trigger only if $form_options weren’t set. This is obviously undesirable and goes against what the function was originally intended for. We’re looking at either reverting this change (have to find out why it was made in the first place first), or triggering modify_forms regardless. Very sorry about this! :(

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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More