elementor / elementor

The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.

Home Page:https://elementor.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docs elementor/frontend/after_register_styles possibly wrong?

stratboy opened this issue · comments

Hi, on the docs of elementor/frontend/after_register_styles, I can read this code:

add_action( 'elementor/frontend/after_register_styles', function() {
   wp_dequeue_style( 'font-awesome' );
});

Usually, wp_dequeue_style is used after enqueueing styles, not after registering. So maybe you should write wp_deregister_style or change filter to elementor/frontend/after_enqueue_styles.
I would have done the edit, but I'm no sure if this code is somewhat related to elementor's internals.

Anyway, docs also lacks 'elementor/frontend/after_enqueue_styles'. They're not complete for scripts hooks too.

Thanks!