PluginProbe
Insert Html Snippet / trunk
Insert Html Snippet vtrunk
1.4.6 trunk 1.0 1.0.1 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4 1.4.1 1.4.2 1.4.3 All 27 releases
insert-html-snippet / direct_call.php

direct_call.php in Insert Html Snippet trunk, at direct_call.php

21 lines 486 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) )
3 exit;
4
5 function xyz_ihs_plugin_query_vars($vars) {
6 $vars[] = 'wp_ihs';
7 return $vars;
8 }
9 add_filter('query_vars', 'xyz_ihs_plugin_query_vars');
10
11
12 function xyz_ihs_plugin_parse_request($wp) {
13 /*confirmation*/
14 if (array_key_exists('wp_ihs', $wp->query_vars) && $wp->query_vars['wp_ihs'] == 'editor_plugin_js') {
15 require( dirname( __FILE__ ) . '/editor_plugin.js.php' );
16 die;
17 }
18
19 }
20 add_action('parse_request', 'xyz_ihs_plugin_parse_request');
21