Free Directory, Listing & Classifieds WordPress Plugin Support General HivePress How to get the package of the user

How to get the package of the user

  • Author
    Posts
  • Hermee

    I’d like to have an easy-way to get the name of the package regardless of the user is logged in or not, where i cant find it out on mysql, php, what Listing Package a Vendor has subscribed?

    Warm Regards
    Felix

    Hermee

    How i get the listing packages name of a logged-in user?
    Not using the methods/functions in PHP or MYSQL in the Featured-Plugin

    Warm Regards
    Felix

    Hermee

    Pls get me the code for $user_listing_package->get_name();

    Hermee

    or where i can find it

    ihor developer

    If you’re familiar with PHP please check the extension source code, here’s a block that displays user’s packages https://github.com/hivepress/hivepress-paid-listings/blob/master/includes/blocks/class-user-listing-packages.php Packages are stored as hidden comments of “hp_listing_package” type, so you can also get them with get_comments https://developer.wordpress.org/reference/functions/get_comments/ but I recommend using HivePress API instead.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.