Support » Plugin: License Manager for WooCommerce » License Keys in My Account page

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Drazen Bebic

    (@drazenbebic)

    Hello @aigar,

    thank you for your message and for using my plugin.

    Do you mean a separate tab where you can see all your license keys? I have wanted to do that to be honest. If that’s what you mean, then no problem. I’ll add it as a part of the next update.

    Hi @drazenbebic

    Thank you for quick response.
    This is exactly what I mean and it will be awsome to have in next release.

    But in the mean time is there any possibiliti to list current user keys in front end. I didn’t find any hook for that.

    Plugin Author Drazen Bebic

    (@drazenbebic)

    @aigar

    I will check once I get home and reply to this post to let you know.

    @drazenbebic It would be awesome. Thank you!

    • This reply was modified 1 month, 3 weeks ago by .
    Plugin Author Drazen Bebic

    (@drazenbebic)

    @aigar,

    I have somewhat good news, the plugin has the following filter:

    apply_filters('lmfwc_get_customer_license_keys', $order);

    $order has to be a WC_Order object. You would first need to retrieve all customer orders, loop through them, apply the filter, then check the return value. The filter returns an array with the following structure:

    array(
        'name' => (string) // product name
        'keys' => (array) // an array of license resource model objects
    );

    The license resource model can be found here:

    https://plugins.trac.wordpress.org/browser/license-manager-for-woocommerce/trunk/includes/models/resources/License.php

    Let me know if I can do anything else for you.

    Thank you. I’ll give it a go. And looking forward for the Account page view in future release.

    Plugin Author Drazen Bebic

    (@drazenbebic)

    @aigar,

    absolutely no problem. If you get stuck – let me know, I can help.

    I will also mark this topic as resolved, since the original question has been solved.

    PS: I would greatly appreciate if you took some time out of your day to write a plugin review here on WordPress.org. Those reviews really help spread the plugin and mean a lot to me personally. Here’s the link:

    https://wordpress.org/support/plugin/license-manager-for-woocommerce/reviews/#new-post

    Have a great evening!

    Eizil

    (@eizil)

    it seems the filter didn’t work anymore.

    try to use it, but it return array with empty result.

    could you please guide how to fix the filter?

    Eizil

    (@eizil)

    never mind, after going through your code, i use different function to process my data.

    Plugin Author Drazen Bebic

    (@drazenbebic)

    Hello @eizil,

    is everything working for you? Do you need any more help with this matter?

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.