#8281 closed enhancement (wontfix)
add_action should store action names in global array
| Reported by: | sc0ttkclark | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugins | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
When using add_action, it should store your action identifier (name) in a global array of some sort so that you can pull the actions for a specific item like 'wp_head', to pull out actions and then add them to 'wp_footer'. But this is only an example.
Change History (3)
#1
@
18 years ago
- Keywords add_action get array removed
- Milestone 2.8
- Resolution → wontfix
- Status new → closed
#2
follow-up:
↓ 3
@
18 years ago
I know this isn't a support forum, but what other way would there be?
#3
in reply to: ↑ 2
@
18 years ago
Replying to sc0ttkclark:
I know this isn't a support forum, but what other way would there be?
Look at the code in do_action for hints as to what globals store what.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Actions already exist in an global array. Moving actions to its own global array has already happened and didn't work. There are also already other mechanisms in place for what you most likely want to do.