=' ) ) { add_meta_box( 'atcontent_secondeditor', __( 'AtContent Paid Portion', 'atcontent_textdomain' ), 'atcontent_paid_portion', 'post' ); } // */ } function atcontent_inner_custom_box( $post ) { // Use nonce for verification wp_nonce_field( plugin_basename( __FILE__ ), 'atcontent_noncename' ); $userid = $post->post_author; $ac_api_key = get_user_meta( $userid, "ac_api_key", true ); if ( strlen( $ac_api_key ) == 0 ) { $connect_url = admin_url( "admin.php?page=atcontent/dashboard.php" ); $author_user = get_userdata( intval( $userid ) ); $author_username = ""; if ( $author_user != false ) { $author_username = $author_user->user_login; } ?>
To enjoy all AtContent advantages for this post, please connect with AtContent.
ID, "ac_is_process", true ); $ac_is_process_checked = ""; if ( $ac_is_process == "1" || $ac_is_process == "" ) { $ac_is_process_checked = "checked=\"checked\""; } $ac_postid = get_post_meta( $post->ID, "ac_postid", true ); $ac_user_copyprotect = get_user_meta( $userid, "ac_copyprotect", true ); if ( strlen( $ac_user_copyprotect ) == 0 ) $ac_user_copyprotect = "1"; $ac_user_paidrepost = get_user_meta( $userid, "ac_paidrepost", true ); if ( strlen( $ac_user_paidrepost ) == 0 ) $ac_user_paidrepost = "0"; $ac_is_copyprotect = get_post_meta( $post->ID, "ac_is_copyprotect", true ); if ( strlen( $ac_is_copyprotect ) == 0 ) $ac_is_copyprotect = $ac_user_copyprotect; $ac_is_copyprotect_checked = ""; if ( $ac_is_copyprotect == "1" ) { $ac_is_copyprotect_checked = "checked=\"checked\""; } $ac_is_advanced_tracking = get_post_meta( $post->ID, "ac_is_advanced_tracking", true ); if ( strlen( $ac_is_advanced_tracking ) == 0 ) $ac_is_advanced_tracking = "1"; $ac_is_advanced_tracking_checked = ""; if ( $ac_is_advanced_tracking == "1" ) { $ac_is_advanced_tracking_checked = "checked=\"checked\""; } $plagiarism_quota = 0; $advanced_tracking_quota = 0; $quotas_result = atcontent_api_get_quotas ( $ac_api_key ); $subscriptions_count = 0; if ( $quotas_result["IsOK"] == TRUE ) { $subscriptions_count = count ( $quotas_result["Subscriptions"] ); $plagiarism_quota = intval( $quotas_result["Quotas"]["PlagiarismProtection"]["Count"] ); $advanced_tracking_quota = intval( $quotas_result["Quotas"]["DetailedStat"]["Count"] ); } $ac_is_copyprotect_enabled = $plagiarism_quota > 0; $ac_is_advanced_tracking_enabled = $advanced_tracking_quota > 0; ?>

as

Available posts: .
To enable this feature, please choose a suitable plan
To enable this feature, please upgrade your subscription or wait for the next month ">

Available posts: .
To enable this feature, please choose a suitable plan
To enable this feature, please upgrade your subscription or wait for the next month ">
0 ) { ?>
View statistics
post_content ); $testcontent .= apply_filters( "the_content", $ac_paid_portion ); $ac_is_repost = ( preg_match_all("/ 0 ); if ($ac_is_repost) { $ac_share_panel_data_option = ""; $ac_additional_classes = ""; $ac_additional_classes .= " atcontent_excerpt"; ?>

class="atcontent_widget">post_content; ?>

post_author; $ac_api_key = get_user_meta( $userid, "ac_api_key", true ); if ( strlen( $ac_api_key ) == 0 ) return; // Use nonce for verification $args = array( 'wpautop' => 1 ,'media_buttons' => 1 ,'textarea_name' => 'ac_paid_portion' ,'textarea_rows' => 20 ,'tabindex' => null ,'editor_css' => '' ,'editor_class' => '' ,'teeny' => 0 ,'dfw' => 0 ,'tinymce' => 1 ,'quicktags' => 1 ); $ac_paid_portion = get_post_meta( $post->ID, "ac_paid_portion", true ); wp_editor( $ac_paid_portion, "atcontentpaidportion", $args ); } ?>