Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.