the_content filter-hookWC 1.0

This is a WordPress - the_content hook. The plugin just uses it.

Filters the post content.

Usage

add_filter( 'the_content', 'wp_kama_the_content_filter' );

/**
 * Function for `the_content` filter-hook.
 * 
 * @param string $content Content of the current post.
 *
 * @return string
 */
function wp_kama_the_content_filter( $content ){

	// filter...
	return $content;
}
$content(string)
Content of the current post.

Where the hook is called

Post_Content::render_stateless()
the_content
ProductDescription::render()
the_content
woocommerce/packages/email-editor/src/Integrations/Core/Renderer/Blocks/class-post-content.php 79
$post_content = apply_filters( 'the_content', str_replace( ']]>', ']]>', $post_content ) );
woocommerce/src/Blocks/BlockTypes/ProductDescription.php 65
$description = apply_filters( 'the_content', str_replace( ']]>', ']]>', $description ) );

Where the hook is used in WooCommerce

woocommerce/includes/class-wc-template-loader.php 315
add_filter( 'the_content', array( __CLASS__, 'unsupported_theme_shop_content_filter' ), 10 );
woocommerce/includes/class-wc-template-loader.php 326
add_filter( 'the_content', array( __CLASS__, 'unsupported_theme_product_content_filter' ), 10 );
woocommerce/includes/class-wc-template-loader.php 550
remove_filter( 'the_content', array( __CLASS__, 'unsupported_theme_shop_content_filter' ) );
woocommerce/includes/class-wc-template-loader.php 605
remove_filter( 'the_content', array( __CLASS__, 'unsupported_theme_product_content_filter' ) );