Function
Register another blog signup form.
tml_ms_register_another_blog_signup_form( )
Source
function tml_ms_register_another_blog_signup_form() {
tml_register_form(
'another_blog_signup',
array(
'action' => tml_get_action_url( 'signup' ),
'attributes' => array(
'id' => 'setupform',
),
'render_args' => array(
'show_links' => false,
),
)
);
tml_add_form_field(
'another_blog_signup',
'stage',
array(
'type' => 'hidden',
'value' => 'gimmeanotherblog',
'priority' => 5,
)
);
tml_add_form_field(
'another_blog_signup',
'signup_hidden_fields',
array(
'type' => 'action',
'render_args' => array( 'create-another-site' ),
)
);
tml_ms_add_blog_signup_form_fields( 'another_blog_signup' );
tml_add_form_field(
'another_blog_signup',
'submit',
array(
'type' => 'submit',
'value' => __( 'Create Site' ), // phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- reusing WP core's translated "Create Site" string (see wp-signup.php), not a TML-specific string.
'priority' => 30,
)
);
}
Uses
Used by
Changelog
| Version | Description |
|---|---|
| 7.0 | Introduced. |