HEX
Server: Apache/2
System: Linux server-27-254-144-72.da.direct 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64
User: pokaorgani (1114)
PHP: 8.1.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/pokaorgani/public_html/wp-content/plugins/tinymce-table/TinyMCE_Table.php
<?php /*
Plugin Name: TinyMCE Table
Plugin URI: http://wordpress.org/plugins/tinymce-table/
Author: Gary PEGEOT
Description: Ajoute la création et l'édition des tables à TinyMCE. Plugin version 4.1.1
Licence: GPLv2
Version: 1.0
*/
// Ajout du plugin
add_filter('mce_external_plugins', 'ajout_table');
function ajout_table() {
	$plugin['table'] = plugins_url('plugin.min.js', __FILE__);	
	return $plugin;    
}

//Ajout du bouton
add_filter( 'mce_buttons', 'bouton_table' );
function bouton_table($arg) {
    // Position bouton alignright
    $pos = array_search( 'link', $arg );
    
    // Si pas de bouton alignright
    if ( ! $pos ) {
        $arg[] = 'table';
        return $arg;
    } else {
        $arg = array_merge( array_slice( $arg, 0, $pos ), array( 'table' ), array_slice( $arg, $pos ) );
        return $arg;	
    }
}
?>