public function populate_post_content_for_indexing( \WP_Post $post ) : \WP_Post {

		$module_content = $this->get_modules_content( $post );

		if ( ! empty( $module_content ) ) {
			// Fake fill the post_content with modules before SearchWP indexing.
			$post->post_content = $module_content;
		}

		return $post;
	}
public function populate_post_content_for_indexing( \WP_Post $post ) : \WP_Post {

		$module_content = $this->get_modules_content( $post );

		if ( ! empty( $module_content ) ) {
			// Fake fill the post_content with modules before SearchWP indexing.
			$post->post_content = $module_content;
		}

		return $post;
	}
public function populate_post_content_for_indexing ( \ WP_Post $ post ) : \ WP_Post { $ module_content = $ this -> get_modules_content ( $ post ) ; if ( ! empty ( $ module_content ) ) { // Fake fill the post_content with modules before SearchWP indexing. $ post -> post_content = $ module_content ; } return $ post ; }
Populate the post_content with modules HTML before SearchWP indexing.

@param \WP_Post $post The post.
@return \WP_Post
Populate the post_content with modules HTML before SearchWP indexing .