Skip to content

Releases: willhowat/dmg-read-more

Release list

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 30 May 11:01

Added

  • dmg/read-more Gutenberg block — dynamic block that renders a styled Read More link to any published post
  • Sidebar inspector panel with debounced keyword search, direct post ID lookup, and paginated results
  • WYSIWYG canvas preview matching frontend output; warning notice when the block links to the post it appears in
  • PHP render callback outputting <p class="dmg-read-more"> (with block-support attributes via get_block_wrapper_attributes()) containing an anchor with <span class="dmg-read-more__prefix"> and <span class="dmg-read-more__title"> children
  • WP-CLI command group wp dmg-read-more with four subcommands:
    • migrate — creates the {prefix}dmg_read_more_index table
    • backfill — seeds the index from existing published posts
    • sync — reconciles the index after a period of plugin deactivation
    • search — queries the index for posts containing the block, with optional --date-after, --date-before, --post-type, and --format (ids or count) flags
  • Dedicated index table for O(matching posts) search performance at scale; maintained automatically via save_post and deleted_post hooks
  • dmg_read_more_allowed_in_post_types filter — restricts which post types the block can be inserted into
  • dmg_read_more_post_types filter — restricts which post types appear in the block's link target search results
  • dmg_read_more_prefix filter — overrides the "Read More:" label on the frontend and in the editor preview
  • Uninstall routine that drops the index table on plugin deletion