Are styles included in a stylesheet using add_editor_style loaded in the front end?

I am writing a stylesheet that will help show the content in the TinyMCE editor look more like it would appear on the front end of the website using the add_editor_style function in the WordPress theme functions file. I may even end up adding a few style rules in the editor-style.css file just to be used on content.

So I am wondering if the styles added to the editor-style.css stylesheet are also loaded on the front of the website when the page gets rendered? I checked the WordPress documentation and I didn't see anything that specifically stated one way or the other.

add_editor_style( "editor-style.css" );

UPDATE

Here is the actual code from the themes functions file:

function custom_theme_features()  {
    add_editor_style( 'css/editor-style.css' );
}
add_action( 'after_setup_theme', 'custom_theme_features' );

Topic add-editor-style Wordpress

Category Web


Below is the full code to include the editor style in a common way.

<?php
function my_theme_add_editor_styles() {
add_editor_style( 'custom-editor-style.css' );
}
add_action( 'admin_init', 'my_theme_add_editor_styles' );
?>

When you are adding the custom editor style, you need to use admin_init hook which is triggered only when you are inside the admin panel. So the stylesheet will not load in the front end and is limited to admin dashboard.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.