• How to find the Channel ID to any Youtube Channel

  • When you need to direct a particular user to a certain page based on their role in WordPress, you don’t need to spend money on a redirect plugin – just put the following code in your function.php file.

    n

    For instance, if you want all Subscribers to be redirected to their Dashboard.

    				
    					function login_redirect_based_on_roles($user_login, $user) {nn    if( in_array( 'subscriber',$user->roles ) ){n        exit( wp_redirect('Your page link goes here' ) );n    }   n}nnadd_action( 'wp_login', 'login_redirect_based_on_roles', 10, 2);
    				
    			

    When you need to direct a particular user to a certain page based on their role in WordPress, you don’t need to spend money on a redirect plugin – just put the following code in your function.php file.

    For instance, if you want all Subscribers to be redirected to their Dashboard.

    				
    					function login_redirect_based_on_roles($user_login, $user) {
    
        if( in_array( 'subscriber',$user->roles ) ){
            exit( wp_redirect('Your page link goes here' ) );
        }   
    }
    
    add_action( 'wp_login', 'login_redirect_based_on_roles', 10, 2);
    				
    			
  • How to Find Width/Height of an Element in Photoshop

  • Emails not making it to my inbox

  • When you need to direct a particular user to a certain page based on their role in WordPress, you don’t need to spend money on a redirect plugin – just put the following code in your function.php file.

    For instance, if you want all Subscribers to be redirected to their Dashboard.

    				
    					function login_redirect_based_on_roles($user_login, $user) {
    
        if( in_array( 'subscriber',$user->roles ) ){
            exit( wp_redirect('Your page link goes here' ) );
        }   
    }
    
    add_action( 'wp_login', 'login_redirect_based_on_roles', 10, 2);
    				
    			

    Adding PayPal to a gravity form is easy!

    But when there is an unwanted “Pay Later” button – what do you do?

    Put the following code into your functions.php file, and that button will be removed:

     

    				
    					
    
    add_filter( 'gform_ppcp_disable_funding', 'ppcp_disable_paylater' );
    function ppcp_disable_paylater( $disabled_funding ) {
    $disabled_funding[] = 'paylater';
    return $disabled_funding;
    }
    				
    			
  • events calendar highlight current day

    How To Highlight Current Day on Tribe Events Calendar

  • Use Power Words to Rank Higher In SEO

  • wordpress menu items

    Menu Items Won’t Save Correctly in WordPress