LLMS_Abstract_Generator_Posts::insert_resuable_block( int $block_id, array $block )
Insert a reusable block into the database
Description Description
Parameters Parameters
- $block_id
-
(Required) WP_Post ID of the block being imported. This will be the ID as found on the original site.
- $block
-
(Required) Array of block data.
- 'title'
(string) Title of the reusable block. - 'content'
(string) Content of the reusable block.
- 'title'
Return Return
(int) WP_Post ID on success or `0 on error.
Source Source
File: includes/abstracts/llms-abstract-generator-posts.php
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |