Automattic / Automattic/o2

`Events.addAction()` does nothing

Open
#174 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
338
Forks
56
Avg merge
24m
Merged PRs (30d)
16

Description

`addFilter` works, but it's action counterpart is just an empty function.

In the meantime, it looks like action callbacks can be triggered like this:

```js
jQuery( document ).on( 'ready.o2', function() {
// whatever you want here
} );
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading Events.addAction() and comparing it with addFilter(), then inspect how the jQuery document event 'ready.o2' is used for action callbacks. Done means addAction() no longer silently does nothing and registered action callbacks can be triggered as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.