Description
Add some content before 'the_content' filtering
Usage
$string = oikth_the_post_oik_themes( $post, $content );Parameters
- $post
- ( post ) required –
- $content
- ( string ) required – the current content
Returns
string additional contentSource
File name: oik-themes/oik-themes.phpLines:
1 to 24 of 24
function oikth_the_post_oik_themes( $post, $content ) { do_action( "oik_add_shortcodes" ); $additional_content = null; $slug = get_post_meta( $post->ID, "_oikth_slug", true ); if ( !is_single() && false === strpos( $post->post_content, "[oikth_download" ) ) { $additional_content .= "[clear][oikth_download theme='$slug' text='" ; $additional_content .= __( "Download", "oik-themes" ); $additional_content .= " "; $additional_content .= $post->post_title; $additional_content .= "']"; } if ( is_single() ) { oik_require( "includes/class-oik-themes-content.php", "oik-themes" ); $oik_themes_content = new OIK_themes_content(); $content = $oik_themes_content->additional_content( $post, $slug ); } else { $content .= $additional_content; } return( $content ); }View on GitHub
Invoked by
Calls
1 to 2 of 2
Call hooks
API Letters:
