mc4wp_get_edit_form_url ( int $form_id, string $tab = '' )

Gets the absolute url to edit a form

Return: (string)

Source file: forms/admin-functions.php

View source


Parameters

$form_id

(int) (Required) ID of the form

$tab

(string) (Optional) Tab identifier to open

Default value: ''


Used by

Uses


Source

function mc4wp_get_edit_form_url( $form_id, $tab = '' ) {
	$url = admin_url( sprintf( 'admin.php?page=mailchimp-for-wp-forms&view=edit-form&form_id=%d', $form_id ) );

	if( ! empty( $tab ) ) {
		$url .= sprintf( '&tab=%s', $tab );
	}

	return $url;
}


User Contributed Notes

You must log in before being able to contribute a note.