HEX
Server: Apache
System: Linux p3plzcpnl489499.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: dwauav0tm6jp (6177017)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dwauav0tm6jp/public_html/wp-content/themes/photographer-wp/admin/shortcode-generator.php
<?php


/* ============================================================================================================================================= */


	function tinyplugin_register( $plugin_array )
	{
		$url = get_template_directory_uri() . '/admin/shortcode-generator.js';
	 
		$plugin_array['tinyplugin'] = $url;
		
		return $plugin_array;
	}
	
	
	function tinyplugin_add_button( $buttons )
	{
		array_push( $buttons, 'separator', 'tinyplugin' );
		
		return $buttons;
	}


/* ============================================================================================================================================= */


	add_filter( 'mce_external_plugins', 'tinyplugin_register' );
	add_filter( 'mce_buttons', 'tinyplugin_add_button', 0 );


/* ============================================================================================================================================= */


?>