Home / Admin / Add the_content to storefront template.
Duplicate Snippet

Embed Snippet on Your Site

Add the_content to storefront template.

Changes the number of downloads displayed in the latest downloads section of the store front template.

Code Preview
php
<?php
function jp_inject_the_content() {
	remove_action( 'digitalstore_store_front', 'digitalstore_front_latest_downloads', 2 );
	add_action( 'digitalstore_store_front', 'digitalstore_front_latest_downloads', 3 );
	add_action( 'digitalstore_store_front', 'jp_add_content', 2 );
}
add_action( 'init', 'jp_inject_the_content' );
function jp_add_content() {
	echo apply_filters( 'the_content', get_post_field( 'post_content', get_the_ID() ) );
}
add_action( 'init', 'jp_add_content' );

Comments

Add a Comment