• I am using the following action;

    add_action( 'user_new_form', 'epx_add_user_form_to_admin_area',489);
    function epx_add_user_form_to_admin_area($current){
       $current .= 'this is a test';
       echo $current;
    }

    The issue is the minute i put that in s2member which displays a load of options on the add user page in the admin not to display

    https://prntscr.com/5qbvoq

    ^^That is when i have not got anything that whats s2 member shows

    https://prntscr.com/5qbw32

    ^^That is when i use the code above.

    It is like it is overwritten what s2member wants to display. What is the best way to output new themes without removing s2member items which are required!

    Many Thanks for any help.

Viewing 1 replies (of 1 total)
  • Added this on WPSE, but copying here in case it helps and someone else is in a similar situation:

    I believe the variable passed by this action is a $user object, not a string. try this:

    function epx_add_user_form_to_admin_area( $user ) {
      echo "this is a test";
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Having an add_action( 'user_new_form',) brakes another’ is closed to new replies.