ID, 'afe-font-size', true); $afe_font_family = get_user_meta($current_user->ID, 'afe-font-family', true); if ($afe_font_family || $afe_font_size) { ?> ID; ?>

' . __('Admin Font Editor', 'afe') . ''; ?> ID, 'afe-font-family', (string)$_POST['afe-font-family'] ); } else { update_user_meta( $current_user->ID, 'afe-font-family', (string)trim($_POST['afe-font-family-user']) ); update_user_meta( $current_user->ID, 'afe-font-family-user', (string)trim($_POST['afe-font-family-user']) ); } update_user_meta( $current_user->ID, 'afe-font-size', $_POST['afe-font-size'] ); ?>


ID, 'afe-font-size', true); $afe_font_family = get_user_meta($current_user->ID, 'afe-font-family', true); if ( ! empty( $mce_css ) ) $mce_css .= ','; $font_url .= plugins_url( 'css.php?size='.$afe_font_size.'&font='.$afe_font_family, __FILE__ ); $mce_css .= str_replace( ',', '%2C', $font_url ); return $mce_css; } add_filter( 'mce_css', 'plugin_mce_css' ); // for transalations function afe_action_init() { load_plugin_textdomain('ape', false, dirname(plugin_basename(__FILE__) ) . '/languages/' ); } add_action('init', 'afe_action_init');