Uname:
Linux webm001.cluster110.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software:
Apache
PHP version:
7.3.33 [ PHP INFO ] PHP os:
Linux
Server Ip:
213.186.33.19
Your Ip:
216.73.216.124
User:
creationoo (224166) | Group:
users (100)
Safe Mode:
OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl
<?php
function ls_mce_hooks() {
if(current_user_can('edit_posts') || current_user_can('edit_pages')) {
if(get_user_option('rich_editing')) {
add_filter('mce_external_plugins', 'ls_register_mce_js');
add_filter('mce_buttons_2', 'ls_register_mce_buttons');
}
}
}
function ls_register_mce_buttons($buttons) {
array_push($buttons, '|', 'layerslider_button');
return $buttons;
}
function ls_register_mce_js($plugins) {
$plugins['layerslider_button'] = LS_ROOT_URL.'/static/admin/js/ls-admin-tinymce.js';
return $plugins;
}
add_action('init', 'ls_mce_hooks');