Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-includes/plugin.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* The plugin API is located in this file, which allows for creating actions
* and filters and hooking functions, and methods. The functions or methods will
* and filters and hooking functionsand methods. The functions or methods will
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the comma makes this worse.

* then be run when the action or filter is called.
Comment on lines 3 to 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested improvement:

 * The plugin API defined here allows for callbacks (functions/methods) to be
 * registered with hooks, which are either actions and filters. The callbacks are 
 * invoked when an action is done or a filter is applied.

*
* The API callback examples reference functions, but can be methods of classes.
Expand Down
Loading