piotrpress/meta-block

This WordPress plugin adds a Meta Block which renders a selected post meta field.

v0.2.0 2024-02-01 16:48 UTC

This package is auto-updated.

Last update: 2024-04-30 17:26:07 UTC


README

This WordPress plugin adds a Meta Block which renders a selected post meta field.

Screenshot

Meta Block in WordPress block editor view

Filter

Use piotrpress/meta_block filter to change rendered value of the block, e.g.:

add_filter( 'piotrpress/meta_block', fn( $value, $key, $post_id ) => is_array( $value ) ? print_r( $value, true ) : $value, 10, 3 );

Requirements

PHP >= 7.4 version.

License

GPL v3 or later