# insert-html-snippet/1.2.3/direct_call.php

Insert Html Snippet, version 1.2.3. 21 lines.

- Page: https://pluginprobe.com/plugins/insert-html-snippet/1.2.3/code/direct_call.php
- Raw: https://pluginprobe.com/plugins/insert-html-snippet/1.2.3/raw/direct_call.php
- Modified: 2018-01-15T14:40:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/insert-html-snippet/1.2.3/code/direct_call.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) 
	exit;
	
function xyz_ihs_plugin_query_vars($vars) {
	$vars[] = 'wp_ihs';
	return $vars;
}
add_filter('query_vars', 'xyz_ihs_plugin_query_vars');


function xyz_ihs_plugin_parse_request($wp) {
	/*confirmation*/
	if (array_key_exists('wp_ihs', $wp->query_vars) && $wp->query_vars['wp_ihs'] == 'editor_plugin_js') {
		require( dirname( __FILE__ ) . '/editor_plugin.js.php' );
		die;
	}
	
}
add_action('parse_request', 'xyz_ihs_plugin_parse_request');

```
