• Resolved wp_edu

    (@alemao2k6)


    I use License Manager only for selling keys that already exist, importing them into LMFWC. I don’t generate or use the REST API’s of the plugin.

    My need is to customize the data that is built into the My Account license display, and the PDF Certificate that is available for download.

    I was able to customize the templates correctly, by copying them to my child theme. These templates I was able to customize:

    – lmfwc-view-license-keys.php
    – single-certificate.php
    – single.php

    But there are other parts I needed to customize, to hide specific fields from LMFWC (license ID, expiration and activation information, for example), because I don’t use those features.

    The only way I was able to customize them, was editing the MyAccount.php file in this path:

    plugins/license-manager-for-woocommerce/includes/Integrations/WooCommerce/MyAccount.php

    These functions are the ones I am customizing:

    – GeneratePDFCertificate
    – lmfwcGetCertificateData

    I would like to know if there is any way to filter the data that is being added to the $data[‘license_details’] array using my child theme’s functions.php.

    PS: I see that there is a filter called lmfwc_license_certification_prefilter_data but I was unable to use it. Could you share an example of how to use that filter?

    Also, I need to change the function GeneratePDFCertificate so that it generates the certificate with my necessities (Logo styling, removing some data, changing the name of the generated file).

    Is there any way to affect these functions, or the data they manipulate, without editing MyAccount.php?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @alemao2k6,

    Thanks for contacting us,

    I hope you are doing well, To escalate your case, please create a ticket on our official website so that we can connect you directly with our Technical team.

    Looking forward to getting your issue resolved.

    Thanks & Regards
    WP Experts Support Team

Viewing 1 replies (of 1 total)
  • The topic ‘Filter data on license display (MyAccount)’ is closed to new replies.