Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View binzorellino's full-sized avatar

Imre T. B. binzorellino

View GitHub Profile
@binzorellino
binzorellino / index.html
Last active February 14, 2020 07:32
teszt
<!DOCTYPE html>
<html lang="hu">
<head>
<!-- Stylesheets -->
<link rel="stylesheet" href="styles.css" type="text/css" media="screen" />
<!-- Title -->
<title>teszt</title>
@binzorellino
binzorellino / force-to-refresh-tinymce-css.php
Created November 22, 2019 13:58
Wordpress - force to refresh the cached TinyMCE editor style css file
<?php
add_filter( 'mce_css', 'fresh_editor_style' );
function fresh_editor_style( $css ) {
global $editor_styles;
if ( empty ( $css ) or empty ( $editor_styles ) ) {
return $css;
}
$mce_css = array();
$style_uri = get_stylesheet_directory_uri();
$style_dir = get_stylesheet_directory();