Skip to content

Commit aa81c3c

Browse files
committed
Document the cloudinary_skip_parse_element hook.
1 parent f93c53b commit aa81c3c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

php/class-delivery.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,18 @@ public function rebuild_tag( $tag_element ) {
13981398
* @return array|null
13991399
*/
14001400
public function parse_element( $element ) {
1401-
1401+
/**
1402+
* Filter to skip parsing an element.
1403+
*
1404+
* @hook cloudinary_skip_parse_element
1405+
* @since 3.2.6
1406+
* @default {false}
1407+
*
1408+
* @param $skip {bool} True to skip parsing.
1409+
* @param $element {string} The element to parse.
1410+
*
1411+
* @return {bool}
1412+
*/
14021413
if ( apply_filters( 'cloudinary_skip_parse_element', false, $element ) ) {
14031414
return null;
14041415
}

0 commit comments

Comments
 (0)