Created
September 4, 2024 07:48
-
-
Save jmabbas/46776ff05e0b68b79c177d87134eb647 to your computer and use it in GitHub Desktop.
WooCommerce Html load in product short description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function filter_post_excerpt_attrs( $metadata ) { | |
if ( 'core/post-excerpt' === $metadata['name'] ) { | |
$metadata["attributes"]["excerptLength"] = false; | |
} | |
return $metadata; | |
}; | |
add_filter( 'block_type_metadata', 'filter_post_excerpt_attrs', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment