webberzone.dev Recent

wzkb_github_export_image_post filter Pro only

wzkb_github_export_image_post

Convert a core/image block to Markdown or clean figure HTML.

Handles four cases:

  • Plain image →
  • Linked image ( wraps ) →
  • Captioned image (
    ) →
    <img …/>
  • Linked + captioned →
    <img …/>

Filters:

  • wzkb_github_export_image_pre — modify the block array or return a string to bypass.
  • wzkb_github_export_image_post — modify the generated Markdown or figure HTML string.

Type: filter
Since: 3.1.0
Source: includes/github/class-content-exporter.php line 679

Parameters

TypeNameDescription
array$blockParsed block array.

Usage

add_filter( 'wzkb_github_export_image_post', function($block) {
    // ...
    return $block;
} );