HEX
Server: LiteSpeed
System: Linux dal1.hostclusters.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User: vslw (1496)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/vslw/public_html/wp-content/plugins/penci-shortcodes/mce/mce.php
<?php
/**
 * This file has all the main shortcode functions
 */
if ( ! function_exists( 'penci_refresh_mce' ) ) {
	function penci_refresh_mce( $ver ) {
		$ver += 3;

		return $ver;
	}
}
// init process for button control
add_filter( 'tiny_mce_version', 'penci_refresh_mce' );

add_action( 'init', 'penci_pre_add_shortcode_buttons' );
if ( ! function_exists( 'penci_pre_add_shortcode_buttons' ) ) {
	function penci_pre_add_shortcode_buttons() {
		// Don't bother doing this stuff if the current user lacks permissions
		if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) )
			return;

		// Add only in Rich Editor mode
		if ( get_user_option( 'rich_editing' ) == 'true' ) {
			add_filter( "mce_external_plugins", "penci_pre_add_shortcodes_tinymce_plugin" );
			add_filter( 'mce_buttons', 'penci_pre_register_shortcode_buttons' );
		}
	}
}
if ( ! function_exists( 'penci_pre_register_shortcode_buttons' ) ) {
	function penci_pre_register_shortcode_buttons( $buttons ) {
		array_push( $buttons, 'penci_pre_shortcodes_button' );

		return $buttons;
	}
}
// Load the TinyMCE plugin : editor_plugin.js (wp2.5)
if ( ! function_exists( 'penci_pre_add_shortcodes_tinymce_plugin' ) ) {
	function penci_pre_add_shortcodes_tinymce_plugin( $plugin_array ) {
		$plugin_array['penci_pre_shortcodes_button'] = plugin_dir_url( __FILE__ ) . '/js/mce.js';

		return $plugin_array;
	}
}