spacer
spacer
|
spacer
|
spacer
|
spacer
A A A

PHP       Report abuse

 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
//This goes in functions.php

if (isset($_GET['page'])) {
	if ($_GET['page'] == 'foxyshop_order_management') {
		add_action('admin_footer', 'mycustom_init');
	}
}

//write buttons to form
function mycustom_init() {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
	$(".submitcancel").after('<button class="button" style="margin-left: 15px;" name="mycustomhandle" id="mycustomhandle" type="submit">My Custom Button</button>');
});
</script>
<?php
}

//set up handler
if (isset($_GET['mycustomhandle'])) add_action('admin_init', 'mycustomhandle_handler');

function mycustomhandle_handler() {
	global $foxyshop_settings, $wp_version;

	//Do Yer Fancy Stuff Here

	die;
}

?>
 
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.