Skip to content

Instantly share code, notes, and snippets.

@mrme44
mrme44 / Alternate Example.php
Created July 30, 2024 14:08
TinyMCE in WordPress
$profileUrl = get_author_posts_url(get_current_user_id());
$postID = get_the_ID();
$author = get_the_author();
$includes_url = includes_url( 'js/tinymce/tinymce.min.js' );
if(is_user_logged_in()){
global $post;
$userData = get_userdata(get_current_user_id());
$displayName = $userData->display_name;