piotrpress / dynamic-block
This WordPress plugin adds a dynamic block which renders an output of a selected php callback function added via a filter hook.
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >=7.4
This package is auto-updated.
Last update: 2024-11-30 13:58:21 UTC
README
This WordPress plugin adds a dynamic block which renders an output of a selected php callback function added via a filter hook.
Usage
Add piotrpress/dynamic_block/callbacks
filter.
Example
add_filter( 'piotrpress/dynamic_block/callbacks', function( $callbacks ) { $callbacks[ 'Current date' ] = fn() => date( 'Y-m-d H:i:s' ); return $callbacks; } );
Screenshot
Requirements
PHP >= 7.4
version.