jetpack_connection_user_has_license

jetpack_connection_user_has_license

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: jetpack.14.1

apply_filters('jetpack_connection_user_has_license') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-licensing/src/class-licensing.php line 353
    		 * @param array  $licenses Unattached licenses belonging to the user.
    		 * @param string $plugin_slug Slug of the plugin that initiated the flow.
    		 */
    		if ( $plugin_slug && count( $licenses )
    			&& apply_filters( 'jetpack_connection_user_has_license', false, $licenses, $plugin_slug )
    		) {
    			wp_safe_redirect( '/wp-admin/admin.php?page=my-jetpack#/add-license' );
    			exit;
    		}
    	}
    }
    

See this hook used in plugins: