PHP code example of keesiemeijer / additional-content
1. Go to this page and download the library: Download keesiemeijer/additional-content library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
keesiemeijer / additional-content example snippets
add_filter( 'the_content', 'additional_content_home_page' );
function additional_content_home_page( $content ) {
// Check if we're on the home page
if ( !is_home() ) {
return $content;
}
// Check if this is the main query and inside the loop.
if ( in_the_loop() && is_main_query() ) {
// Check if the plugin function get_content() exists.
if ( function_exists( 'keesiemeijer\Additional_Content\\get_content' ) ) {
// Add the additional content to the post content with the get_content() function.
// Content and post id are
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.