Skip to content

Docs elementor/frontend/after_register_styles possibly wrong? #1992

@stratboy

Description

@stratboy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions