Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP 2.8.2 and WP 4.8 – Profile fields update actions: only one way work?


  • axew3
    Participant

    @axewww

    In the hope that the topic is inserted into the correct forum (i’m first time here and i’m little confused to be honest, in case so, please change this topic node location) …
    I’m checking the buddypress code into class-bp-xprofile-field.php because i need profile fields data when profile fields are updated by user, and i see three actions about profile fields update (there are more, but i need these) which are:
    xprofile_group_after_save, xprofile_field_after_save and xprofile_updated_profile. This last one is the only one that work. And i’ll go using this so, but asking to myself if there is any reason why, the other two instead fails?

    function action_xprofile_updated_profile( $user_id, $posted_field_ids, $errors, $old_values, $new_values ) { 
        // work fine
    }; 
             
    // add the action 
    add_action( 'xprofile_updated_profile', 'action_xprofile_updated_profile', 10, 5 ); 
    
        // define the xprofile_group_after_save callback 
        function action_xprofile_group_after_save( $array ) { 
        // not work
        }; 
                 
        // add the action 
        add_action( 'xprofile_group_after_save', 'action_xprofile_group_after_save', 10, 1 ); 
    
        // define the xprofile_field_after_save callback 
        function action_xprofile_field_after_save( $array ) { 
         // not work
        }; 
                 
        // add the action 
        add_action( 'xprofile_field_after_save', 'action_xprofile_field_after_save', 10, 1 );
Viewing 1 replies (of 1 total)

  • axew3
    Participant

    @axewww

    NOPE … sorry all are working fine instead … i was using in wrong way, because i had understand something for something else ARGHHH!
    Bye all cool people 😉

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar