https://github.com/sayhellogmbh/shb-pageteaser
Display a preview teaser for a selected sub-page.
https://github.com/sayhellogmbh/shb-pageteaser
Last synced: 3 months ago
JSON representation
Display a preview teaser for a selected sub-page.
- Host: GitHub
- URL: https://github.com/sayhellogmbh/shb-pageteaser
- Owner: SayHelloGmbH
- License: gpl-2.0
- Created: 2022-02-21T14:16:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T16:09:51.000Z (almost 2 years ago)
- Last Synced: 2025-01-27T14:58:40.318Z (over 1 year ago)
- Language: JavaScript
- Size: 283 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
- License: LICENSE
Awesome Lists containing this project
README
=== Block: Page Teaser ===
Contributors: markhowellsmead
Tags: block, teaser
Tested up to: 5.9
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Display a preview teaser for a selected sub-page.
== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/shb-pageteaser` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Add a “page teaser” block to the required place in the editor and select a page.
== Developer notes ==
=== Modifying response ===
The following filters are available for developers' use.
==== Base CSS class name for the block
`apply_filters('shb-pageteaser/classnamebase', string $classNameBase, WP_Block $block);`
==== Block content HTML ====
`apply_filters('shb-pageteaser/html', string $html, WP_Block $block);`
==== Image HTML ====
`apply_filters('shb-pageteaser/image', string $image, string $post_id, WP_Block $block);
== Changelog ==
= 1.0.0 =
* Release