post_type ) { return ''; } if ( 'publish' !== $reusable_block->post_status || ! empty( $reusable_block->post_password ) ) { return ''; } return do_blocks( $reusable_block->post_content ); } /** * Registers the `core/block` block. */ function register_block_core_block() { register_block_type( 'core/block', array( 'attributes' => array( 'ref' => array( 'type' => 'number', ), ), 'render_callback' => 'render_block_core_block', ) ); } add_action( 'init', 'register_block_core_block' );