__( 'Insert Avatar', 'one-user-avatar' ), ) ); break; } } add_action( 'admin_enqueue_scripts', 'wpua_tinymce_enqueue_scripts' ); /** * Call TinyMCE window content via admin-ajax * @since 1.4 */ function wpua_ajax_tinymce() { include_once( WPUA_INC . 'wpua-tinymce-window.php' ); die(); } add_action( 'wp_ajax_wp_user_avatar_tinymce', 'wpua_ajax_tinymce' );