/*
Theme Name: FpFei
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
add_filter( 'dokan_redirect_after_login', function( $redirect_url, $user ) {

    if ( dokan()->vendor->get( $user->ID ) || user_can( $user->ID, 'dokan_staff' ) ) {
        $redirect_url = dokan_get_navigation_url( 'products' );
    }

    return $redirect_url;

}, 10, 2 );
