• Resolved Jam

    (@dabert3)


    Hi

    I would like to add meta box on add/edit user role setting. I tried this hook um_roles_add_meta_boxes http://prntscr.com/26nm49w but it seems not working. I’m not sure if I did correctly.

    Is it possible to give some sample code how can I add meta box on edit/add user role setting?

    Best Regards,

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @dabert3

    You can try the following code snippet:

    add_action( 'um_roles_add_meta_boxes', "um_020322_custom_meta_boxes");
    function um_020322_custom_meta_boxes(){
       add_meta_box( 'um-admin-custom-form', __( 'My Custom Form', 'ultimate-member' ),  'my_custom_metabox_content','um_role_meta', 'normal', 'default' );
    			
    }
    
    function my_custom_metabox_content(){
        echo "Test";
    }
    

    Regards,

    Thread Starter Jam

    (@dabert3)

    I tested this code and it works! Thanks @champsupertramp

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘um_roles_add_meta_boxes Hook’ is closed to new replies.