Skip to content

This WordPress plugin adds a dynamic format which renders an output of a selected php callback function added via a filter hook.

License

Notifications You must be signed in to change notification settings

PiotrPress/wordpress-dynamic-format

Repository files navigation

WordPress Dynamic Format

This WordPress plugin adds a dynamic format which renders an output of a selected php callback function added via a filter hook.

Usage

Add piotrpress/dynamic_format/callbacks filter.

Example

add_filter( 'piotrpress/dynamic_format/callbacks', function( $callbacks ) {
    $callbacks[ 'Current date' ] = function( $content ) { return date( 'Y-m-d H:i:s' ); };
    return $callbacks;
} );

Screenshot

Dynamic format in WordPress block editor view

Requirements

PHP >= 7.4 version.

License

GPL v3 or later

About

This WordPress plugin adds a dynamic format which renders an output of a selected php callback function added via a filter hook.

Resources

License

Stars

Watchers

Forks

Packages

No packages published