Quantcast
Channel: admin — WordPress Plugins
Viewing all articles
Browse latest Browse all 2035

BuddyPress Admin Only Profile Fields

$
0
0

Emailed Author: ## Hardcoded plugin folder name

Your plugin won't work via our repository because you hardcoded in the plugin's folder. You've defined your plugin name like this:

load_textdomain( 'bp_admin_only_profile_fields', WP_LANG_DIR . '/bp_admin_only_profile_fields/bp_admin_only_profile_fields-' . get_locale() . '.mo' );

Problem is? That won't be the folder name. The plugin folder name is derived from the name you used to submit your plugin. So if you submitted it as 'Joe's Cool Nameapp' then the folder will be joes-cool-nameapp and not cool-nameapp.

Please read http://codex.wordpress.org/Function_Reference/plugins_url - you'll notice how we have a __FILE__ parameter used in most examples. If you change your plugin to use that, it will work no matter what the folder name is.

When you've corrected your code, reply to this email with the updated code attached as a zip, or provide a link to the new code for us to review.


Viewing all articles
Browse latest Browse all 2035

Trending Articles