Tagged Questions
0
votes
0answers
25 views
add_action inside include
I have the following include in a plugin class function:
include( plugin_dir_path( __FILE__ ) . 'templates/fancybox-player.php');
I have in this include the following code:
// Load js and ...
0
votes
0answers
45 views
shortcode with external file is showing twice [closed]
I have problem on short code activation in my custom plugin. The included file it's shows up twice.
class Configurator{
public function __construct()
{
add_action( ...
0
votes
1answer
234 views
Creating plugin using simple_html_dom parser?
I'm running into a problem with my plugin which is essentially an admin page that includes simple_html_dom parser to edit some information scraped from some websites.
Let's assume I want to parse ...
0
votes
2answers
259 views
include wp-blog-header not working on MAMP
To clarify my question...
My plugin is/was using AJAX to call the file pluginname/submit/pick.php My pluginname/pluginname.php contains the usual plugin header and wordpress automatically finds it.
...
0
votes
1answer
52 views
Include file in plugin file
I have a working plugin with many functions in it. I want to break the plugin into several file. I removed some functions and place it in a file called activate.php k7Course.php. Then in the file ...
0
votes
1answer
316 views
can't access some worpress function from my plugin
I'm trying to write a relatively simple plugin. I have two php files, one is included within the other like this:
define( 'PLUGIN_DIR', dirname(__FILE__).'/' );
include_once(PLUGIN_DIR . ...