Skip to content

Applying filter_control_value on custom controls. #22

@jaredstander

Description

@jaredstander

In the base plugin I've noticed that a new method has been added for controls called filter_control_value that can be used to transform output of that control to streamline and replace some of the existing output transformation filters. I'm noticing that when I declare this in the custom control in the same way it's declared in the control classes in the base plugin, it doesn't seem to be running this function. I also tried to add_filter for filter_control_value in the __construct method of the custom control similar to how it is in _base and also did not observe the function influencing the output. Can custom controls use filter_control_value?

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