Jetengine compatability for adding meta boxes

This topic has 3 replies, 3 voices, and was last updated 9 months, 3 weeks ago ago by Andrew Mitchell

  • Avatar: Ray
    Ray
    Participant
    March 1, 2024 at 13:57

    I need to add additionL

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    March 2, 2024 at 09:09

    Dear Ray,

    We hope this message finds you well.

    We would like to suggest an alternative hook for you to implement:

    
    add_action('woocommerce_product_meta_end', 'xstore_display_jetengine_meta_data', 25);
    function xstore_display_jetengine_meta_data() {
        global $product;
    
        // Get all custom meta data associated with the product
        $meta_data = get_post_meta(get_the_ID());
    
        if (!empty($meta_data)) {
            echo '<ul class="jetengine-meta-data">';
            foreach ($meta_data as $key => $value) {
                // Exclude some default WooCommerce meta data fields and JetEngine internal meta data
                if (strpos($key, '_') !== 0 && $key !== '_elementor_data' && !is_array($value)) {
                    echo '<li><strong>' . ucwords(str_replace('_', ' ', $key)) . ':</strong> ' . $value[0] . '</li>';
                }
            }
            echo '</ul>';
        }
    }
    

    Please try integrating the above code snippet into your website’s functions to display the custom meta data.

    Should you require any further assistance, please do not hesitate to reach out.

    Best Regards,
    The 8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    March 6, 2024 at 09:11

    Dear Ray,

    We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.

    Click here to rate now: https://themeforest.net/downloads

    Thank you sincerely for your ongoing support!

    Best Regards,
    The 8Theme Team

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘Jetengine compatability for adding meta boxes’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.