the_content/( Problem

We are using a Plugin, which uses the_content() filter to protect pages. But with the Muffin Builder it is not working.

Here is the function which the plugin is using:

add_filter( 'the_content', 'add_sicher_content' );

function add_sicher_content( $content ) {
    $authorized = get_post_custom( get_the_ID() );
    if ($authorized['sicher'][0]) {
        if ( check_login() ) {
            return ((!is_free_login())?logout():''). $content;
        } else {
            if ($_GET['url']) echo "<script> location.reload();</script>";
            return '<iframe align="left" frameborder="0" scrolling="no" width="467" height="231" name="dc_login_iframe" id="dc_login_iframe" src="https://login.doccheck.com/code/en/'. esc_attr(get_option('account_id')) . '/xl_red/url='. get_the_ID() .' " ></iframe>';
        }
    } else {
        return $content;
    }
   
}
function add_sicher_title( $title ) {
   
}


Regards

Comments

Sign In or Register to comment.