Skip to content

Dynamic callback function name cannot include hyphens #1468

@shadi-sharaf-nuk

Description

@shadi-sharaf-nuk

Bug Report

Dynamic callback methods in custom connectors, eg: callback_ACTION_NAME cannot have hyphens in their method name, however the callback discovery routine does not convert hyphens to an underscore, hence connectors cannot target actions with hyphens like load-xxx_xxx unless they override the callback method and target the action manually.

Expected Behavior

For an action like load-something, I should be able to use callback_load_something to log that action.

Actual Behavior

I can't use a dynamic callback to target that action, only way is to override the callback method.

System Information

  • Stream plugin version: ALL, including current 3.10.0
  • WordPress version: ANY
  • PHP version: ANY
  • Browser: ANY
  • Computer operating system: ANY

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions