Changeset 48574 for trunk/src/wp-includes/class-wp-embed.php
- Timestamp:
- 07/23/2020 12:50:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-embed.php
r48135 r48574 102 102 * This function should probably also only be used for sites that do not support oEmbed. 103 103 * 104 * @param string $idAn internal ID/name for the handler. Needs to be unique.105 * @param string $regexThe regex that will be used to see if this handler should be used for a URL.104 * @param string $id An internal ID/name for the handler. Needs to be unique. 105 * @param string $regex The regex that will be used to see if this handler should be used for a URL. 106 106 * @param callable $callback The callback function that will be called if the regex is matched. 107 * @param int $priority Optional. Used to specify the order in which the registered handlers will be tested (default: 10). Lower numbers correspond with earlier testing, and handlers with the same priority are tested in the order in which they were added to the action. 107 * @param int $priority Optional. Used to specify the order in which the registered handlers will be tested. 108 * Lower numbers correspond with earlier testing, and handlers with the same priority are 109 * tested in the order in which they were added to the action. Default 10. 108 110 */ 109 111 public function register_handler( $id, $regex, $callback, $priority = 10 ) {
Note: See TracChangeset
for help on using the changeset viewer.