Skip to content

Add PHP API to emit a notification #303

@johnhooks

Description

@johnhooks

What problem does this address?

The current PHP API does not have the functionality to create a notification.

What is your proposed solution?

I propose add a method to the channel class that emits a notification from the registered channel:

$channel->emit( 
  array(
    'message' => __( 'Testing, testing 1, 2, 3... testings', 'wp-feature-notifications' )
  )
);

Questions

  • Does attaching it to the registered channel object make the most sense?

Metadata

Metadata

Assignees

Labels

[Scope] ServiceThe core logic of the WP Notify project.phpPull requests that update Php code

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions