Viewing 1 replies (of 1 total)
  • Plugin Author Nashwan D

    (@alex-ye)

    Sure, Try this:

    add_action( 'plugins_loaded', 'my_conditional_themes_setup', 100 );
    
    function my_conditional_themes_setup() {
    
        Conditional_Themes_Manager::register( 'twentyfourteen', function() {
    		return ( ! empty( $_SERVER['HTTP_REFERER'] ) && in_array( parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_HOST ), array( 'www.facebook.com', 'facebook.com' ) ) );
        } );
    
    }
Viewing 1 replies (of 1 total)
  • The topic ‘different theme detect from referrer’ is closed to new replies.