Skip to content

Fix call signature for elementor/icons_manager/additional_tabs filter #6

@mlwilkerson

Description

@mlwilkerson

According to an AI code review, this code uses the wrong signature, which might result in a fatal ArgumentCountError in some versions of PHP:

add_filter( 'elementor/icons_manager/additional_tabs', fn () => $this->replace_font_awesome_additional_tabs() );

Elementor calls that filter with one arg, like this:

apply_filters( 'elementor/icons_manager/additional_tabs', $additional_tabs )

So our handler should show that it accepts that one arg.

Need to confirm whether that is actually a problem, and if so, fix it.

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