Created
September 6, 2019 07:54
-
-
Save mvaneijgen/8ee723f25f85552cb4422260ac04fb53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function add_the_table_button( $buttons ) { | |
array_push( $buttons, 'separator', 'table' ); | |
return $buttons; | |
} | |
add_filter( 'mce_buttons', 'add_the_table_button' ); | |
function add_the_table_plugin( $plugins ) { | |
$plugins['table'] = get_stylesheet_directory_uri() . '/tinymceplugins/table/plugin.min.js'; | |
return $plugins; | |
} | |
add_filter( 'mce_external_plugins', 'add_the_table_plugin' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment