The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
116 views

How to avoid wp-load.php within a PHP/CSS file?

This is tricky, as people usually mix wp-load with AJAX and I can't really find a proper answer. Case 1 I have a dynamic style.php file that looks like this: <?php header("Content-type: ...
0
votes
1answer
67 views

Get Core Functionality from Within a (Secondary) Plugin File

I have a plugin with the following structure: myplugin.php includes/authentication.php I can access core WordPress functionality inside myplugin.php fine, but when I try to access stuff such as ...
0
votes
0answers
8 views

Custom Plugin inlcude wp-load.php in my new.php file

I have created a custom plugin in WordPress and uploaded to the WordPress.org But the plugin is rejected due to I was including require_once("../../../../wp-load.php"); In one of my php file which ...
0
votes
0answers
10 views

check_admin_referer always false when I use on add_action('load-'* hook

I have try to add hook on load my plugin page. But every time i save my config, it always return "Are you sure want to ..." message. Is there something i missed? Here's my code: <?php class ...
0
votes
0answers
86 views

Get wp-load.php PATH with wp_localize_script and JavaScript for plugin

I just learned about wp_localize_script() and it's very cool. I read Otto's post and Gary Cao's post, but I'm learning Ajax so I'm trying to wrap my head around getting the path to wp-load.php this ...
0
votes
0answers
45 views

Using htaccess and php to protect file, MIME problem

I'm using the method described here: Protecting WordPress Media Uploads Unless User Is Logged In (Based off of How to Protect Uploads, if User is not Logged In?. The redirect is working perfectly, ...
0
votes
0answers
81 views

Why I have this error when I try to install this old blog on my local webserver?

I am pretty new to WP (I came from Joomla) and I am finding some difficulties trying to put on my local web server an old backup of a website (made using WP 3.5) I have performed the following ...
0
votes
0answers
71 views

Including wp-load.php redirects the whole site to wp-admin/install.php

I want to give access of pages for a site that is not actually in wordpress. Client already have the wordpress website. I know that if i include the wp-load.php file outside from wordpress then i can ...
0
votes
0answers
57 views

get_post_meta() not loaded with wp-load

I am executing this code in my external php file (= I am accessing his externaly without loading the full WP; I have a reason why I am doing it) that is located here: ...
0
votes
0answers
121 views

To call hook on a php external file

I can't to call the a filter hook on a php external file of wordpress. This is my code - my_external_file.php -: <?php require( dirname(__FILE__) . '/../../../../../../../wp-load.php'); ...