This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

modify_form not triggering after update?

9 years ago · Last reply by Alex S 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 9 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread