Skip to content
Noah Mason edited this page Oct 22, 2022 · 5 revisions

WP Backstage can extend users with deeply integrated custom fields.

Arguments

  • field_groups array ― the user's field groups.
    • id string ― the field group's id.
    • title string ― the field group's title.
    • description string ― the field group's description.
    • fields array ― the field group's fields.

Modify

WP_Backstage_User::modify(
    array(
        'field_groups' => array(
            array(
                'id'          => 'wp_backstage_user_fields',
                'title'       => __( 'All Fields', 'wp_backstage_examples' ),
                'description' => __( 'These extra meta fields control further details about the user. <a href="#">Example Link</a>', 'wp_backstage_examples' ),
                'fields'      => array(),
            ),
            array(
                'id'          => 'wp_backstage_user_extras',
                'title'       => __( 'Extras', 'wp_backstage_examples' ),
                'description' => __( 'These extra meta fields control further details about the user. <a href="#">Example Link</a>', 'wp_backstage_examples' ),
                'fields'      => array(),
            ),
        ),
    )
);
Clone this wiki locally