wzkb_github_import_image_pre
Fires before an element is converted to an image block.
Return a non-empty string (different from $outer_html) to use as the final block HTML.
Type: filter
Since: 3.1.0
Source: includes/github/class-content-importer.php line 1352
Parameters
| Type | Name | Description |
|---|---|---|
string | $outer_html | Outer HTML of the element. |
\DOMElement | $node | The |
Usage
add_filter( 'wzkb_github_import_image_pre', function($outer_html, $node) {
// ...
return $outer_html;
} );