• Resolved lsdev50

    (@lsdev50)


    I’m encountering an issue with the Elementor Header & Footer Builder plugin when using WP-CLI to export custom post types. The elementor-hf custom post type does not appear in WP-CLI exports, while it is accessible through the standard WordPress export functionality.

    List all post-types using – wp post-type list
    Export Elementor Header & Footer templates in xml file – wp export –post_type=elementor-hf

    Steps Taken:

    1. Plugin Initialization: Confirmed that the plugin is active and initialized properly. The custom post type should be registered in the init hook.
    2. Testing Custom Registration: I added the following code to my theme’s functions.php file to manually register the custom post type when WP-CLI is detected:
    add_action('init', function() {
    if ( defined( 'WP_CLI' ) && WP_CLI ) {
    register_post_type('elementor-hf', array(
    'label' => 'Header Footer',
    'public' => true,
    'show_in_rest' => true,
    'supports' => array('title', 'editor', 'thumbnail'),
    'has_archive' => false,
    'rewrite' => array('slug' => 'elementor-hf'),
    ));
    }
    });

    3. Long-term Concerns: While the above code works, it’s not an ideal long-term solution for theme updates or changes. I want to ensure that the plugin registers its custom post types properly in the WP-CLI environment without needing to override or manually register them.

    Request for Assistance:

    • Can you provide insights into how the Elementor Header & Footer Builder plugin handles custom post type registration in CLI environments?
    • Is there a recommended way to ensure that the elementor-hf post type is consistently available when using WP-CLI, perhaps through a filter or action that ensures it gets registered regardless of the environment?
    • If there are known issues with WP-CLI compatibility, could you advise on any workarounds?

    SS – https://prnt.sc/8Pgwe_8i35xi

    Thank you for your assistance!

    • This topic was modified 1 month ago by lsdev50.
    • This topic was modified 1 month ago by lsdev50.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support bsfankusht

    (@iankusht)

    Hi @lsdev50,

    Thank you for reaching out! We have passed your query to our developers for further review. Please allow us some time as they work on it. We’ll keep you updated as soon as we have more information.

    In the meantime, feel free to reach out if you have any other questions. We appreciate your patience!?

    Kind regards,
    Ankush ??

    • This reply was modified 1 month ago by bsfankusht.
    Plugin Support bsfankusht

    (@iankusht)

    Hi @lsdev50,

    Thank you so much for your patience and for bringing this issue to our attention. I wanted to let you know that our development team has recognized this and has added it to our task list. We’re working on a fix, which will be included in one of our upcoming updates.

    We really appreciate your understanding and continued support. For now, I am closing this thread if you have any further questions or need assistance in the meantime, feel free to reach out!

    Thanks again! ??

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