Contexts / User Context

Read More: Fieldmanager_Context_User

Adds fields to the edit user (profile) screen, and saves data to user meta.

Action

fm_user

Additional References

Fieldmanager_Field::add_user_form()

  1. Example 1: Basic Field

    1
    2
    3
    4
    5
    6
    add_action( 'fm_user', function() {
        $fm = new Fieldmanager_TextField( array(
            'name' => 'demo',
        ) );
        $fm-> add_user_form( 'Basic Field' );
    } );