Skip to:
Content
Pages
Categories
Search
Top
Bottom

connection of a member of a sit


  • HDcms
    Participant

    @hdcms

    Hello,
    I’m looking at the moment of connection of a member of a site:
    do_action ('arm', 2, $ user_id);
    in the functions.php
    what an event ?
    Thank you
    @ +

Viewing 1 replies (of 1 total)

  • HDcms
    Participant

    @hdcms

    Hi,

    I miss the value of the user_id (the function works correctly if I put $ user_id = 100) at the time of the connection of the member? Does that change something with wordpress? I test this function

    add_action('wp_login', 'prov_transfert', 99);
    function prov_transfert( $user_login, $user ) { 
       $user_id = bp_loggedin_user_id()  ; 
       	do_action( 'arm', 2, $user_id);
     } 
    }
    
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar