WordPress.org

Ready to get started?Download WordPress

Forums

Adminer
[resolved] snippet doesn't work anymore (2 posts)

  1. oes
    Member
    Posted 7 months ago #

    hey,
    after i installed adminer my snippet to stay loged after booking an event which i placed in the theme function and worked before doesn't anymore?

    is it possibel that the plugin has something to do with it?

    here the snipet:

    /************* STAY LOGGED-IN *************/
    
    	function my_em_booking_login($result, $EM_Booking){
    	    if ( $result ){
    	        $userid = $EM_Booking->get_person()->ID;
    	        wp_signon($userid);
    	        wp_set_auth_cookie($userid);
    	    }
    	    return $result;
    	}
    	add_filter('em_bookings_add', 'my_em_booking_login',1,2);

    http://wordpress.org/plugins/adminer/

  2. Frank
    Member
    Plugin Author

    Posted 7 months ago #

    Normally not, the plugin use only the config of WordPress, not hooks from WordPress, except the menu item.

Reply

You must log in to post.

About this Plugin

About this Topic