-
Notifications
You must be signed in to change notification settings - Fork 0
/
elements.php
30 lines (27 loc) · 871 Bytes
/
elements.php
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
<?php
/*
Plugin Name: Stage File Proxy
Plugin URI: https://danielgroen.nl/
Description: Get only the files you need from your production environment. Don't ever run this in production!
Version: 1.00
Author: Daniel Groen
Author URI: https://www.danielgroen.nl/
Text Domain: codechief
*/
define('SFPPATH', plugin_dir_path(__FILE__));
define('SFPURL', plugin_dir_url(__FILE__));
define('SFPBASE', plugin_basename(__FILE__));
/**
* Plugin Settings Page
*/
add_filter('plugin_action_links_' . SFPBASE, 'cfp_add_action_links');
function cfp_add_action_links($actions)
{
$mylinks = array(
'<a href="' . admin_url('options-general.php?page=stage-file-proxy') . '">Settings</a>',
);
$actions = array_merge($actions, $mylinks);
return $actions;
}
include_once(SFPPATH . 'src/options-page.php');
include_once(SFPPATH . 'src/image-replacement.php');