• Will not render the admin_notice… could someone kindly tell me how I can display the message “Ran Function A” after getting the return message from FuntionA?
    Been wracking my head about this and I just can’t seem to get it done.

    add_action('save_post', 'functionx');
    
    functionx () {
      functionA; //returns 0 or 1
       //print_r === will print 0 or 1 (I can get info back.)
        if 1
        add_action('admin_notices' , create_function( '', "echo 'Ran Function A';" ) );
        else
        add_action('admin_notices' , create_function( '', "echo 'Cound not do this';" ) );
    }
  • The topic ‘help with admin_notices on save_post’ is closed to new replies.