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.5

apply_filters('jetpack_connection_user_has_license') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-licensing/src/class-licensing.php line 353
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
             * @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( 0 );
            }
        }
    }

See this hook used in plugins: