';
}
}
}
}
}
public static function hideProVersionNotice() {
if(isset($_GET['b2s_action']) && $_GET['b2s_action'] == 'hide_notice'){
if (isset($_GET['b2s_notice_nonce']) && wp_verify_nonce(sanitize_key(wp_unslash($_GET['b2s_notice_nonce'])), 'b2s_notice_nonce')) {
global $wpdb;
$wpdb->update($wpdb->prefix . 'b2s_user', array('feature' => 1), array('blog_user_id' => B2S_PLUGIN_BLOG_USER_ID), array('%d'), array('%d'));
} else {
wp_die(esc_html__('Could not hide notice. Please refresh the page and retry.', 'blog2social'));
}
}
}
public static function getBlogEntries($lang = 'en') {
return json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, array('action' => 'getBlogEntries', 'lang' => $lang, 'token' => B2S_PLUGIN_TOKEN)));
}
public static function getFaqEntriesHtml($items = '') {
$content = '';
if (!empty($items)) {
$content .= '