The Content Area Was Not Found – can’t recognize hooked content
-
Elementor plugin checks whether
the_content()
is called into a page template before executing – it’s a good idea. I appreciate the effort.The Content Area Was Not Found in Your Page
https://docs.elementor.com/article/56-content-area-not-foundBut issue is, in one of my site’s home page, I added a
do_action('homepage');
and hooking all the segments from the code area with different priorities. For displaying the homepage content I did something like below:function display_page_content() { $front_page_id = get_option('page_on_front'); $post = get_post( $front_page_id ); echo do_shortcode( $post->post_content ); } add_action( 'homepage', 'display_page_content', 20 );
You know I did nothing wrong. I’m doing so, instead of placing
the_content()
belowdo_action()
call, so that I can reorder or unhook any of ’em anytime.And Elementor can’t recognize the pattern of code. It’s still sniffing the
the_content()
declaration in the page template.Can we solve this any future release?
Or at least let the developers filter the check to
false
with a filter hook or something?add_filter( 'any_filter_hook_to_disable_the_check', '__return_false' );
- The topic ‘The Content Area Was Not Found – can’t recognize hooked content’ is closed to new replies.