WordPress.org
News
Showcase
Hosting
Extend
Themes
Plugins
Patterns
Blocks
Openverse
↗
︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv
↗
︎
Community
Make WordPress
Education
Photo Directory
Five for the Future
Events
Job Board
↗
︎
About
About WordPress
Enterprise
Gutenberg
↗
︎
Swag Store
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #15834
Ticket #15834
: test-plugin-action-links.php
File test-plugin-action-links.php,
203 bytes
(added by
scribu
,
16 years ago
)
Line
1
<?php
2
3
function
test_action_links
(
$actions
)
{
4
foreach
(
range
(
1
,
7
)
as
$i
)
{
5
$actions
[]
=
"<a href='#'>Action
$i
</a>"
;
6
}
7
8
return
$actions
;
9
}
10
add_filter
(
'plugin_action_links'
,
'test_action_links'
);
Download in other formats:
Original Format