woocommerce_email_editor_post_content_block_names
Returns the list of block names treated as "post content" for padding delegation.
Filterable so that integrations can register custom post-content-like blocks without modifying this file.
Usage
add_filter( 'woocommerce_email_editor_post_content_block_names', 'wp_kama_woocommerce_email_editor_post_content_block_names_filter' );
/**
* Function for `woocommerce_email_editor_post_content_block_names` filter-hook.
*
* @param $array
*
* @return
*/
function wp_kama_woocommerce_email_editor_post_content_block_names_filter( $array ){
// filter...
return $array;
}
- $array
- -
Where the hook is called
woocommerce_email_editor_post_content_block_names
woocommerce_email_editor_post_content_block_names
woocommerce/packages/email-editor/src/Engine/Renderer/ContentRenderer/Preprocessors/class-spacing-preprocessor.php 217-220
$this->post_content_block_names = (array) apply_filters( 'woocommerce_email_editor_post_content_block_names', array( 'core/post-content' ) );
woocommerce/packages/email-editor/src/Engine/Renderer/ContentRenderer/class-content-renderer.php 283-286
$post_content_block_names = (array) apply_filters( 'woocommerce_email_editor_post_content_block_names', array( 'core/post-content' ) );