WordPress.org

Support

Support » Plugins and Hacks » [Resolved] adding a plugins direcotry

[Resolved] adding a plugins direcotry

  • I’m playing around with an idea, How do i add a direcotry to the plugins påth?,

    I have played around with load_plugin_textdomain but that did’nt work.

    load_plugin_textdomain(‘mvcPress’, ‘../wp-content/plugins/mvcPress/helpers’);

    with and without the ../

Viewing 8 replies - 1 through 8 (of 8 total)
  • is /wp-content/plugins hard coded in? i THINK it might be!, what is way around this?

    whooami

    @whooami

    Member

    function load_plugin_textdomain($domain, $path = 'wp-content/plugins') {

    what is $domain?

    Here is my code. withwithout the ../ i treid everything!, what action hook should i do this with?

    function mvcpress_plugins(){
    load_plugin_textdomain(‘mvcPress’, ‘../wp-content/plugins/mvcPress/helpers’);
    do_action(‘mvcpress_plugins’);
    }

    add_action(‘init’, ‘mvcpress_plugins’);

    okay, so i tried it,
    load_plugin_textdomain works ONLY if the direcdtory which you are giving it is a sub directory of plugins. Other than that, it wont recognize it!. What a rip off!.

    whooami

    @whooami

    Member

    yah thats terrible, I say scrap wp and go download some other better blog app.

    The plugins directory is the plugins directory for a reason, and WordPress is made to know that to save ppl that dont know any better from using plugins from shleps that want to make them have another directory. The current system works, and is easy for ppl to understand.

    WordPress id GPL’d take it, right your own version.

    whooami!!!!!!!!! your the type of guy who thinks that abu down at the corner store should go back to ***** because they dont find “Friends” funny.

    i’m b1tching about this because this behaviour was’nt noted anywhere (that i found), not because i dont like wordpress!!!!!!!!!!!!!!!! So i thought i would let people know about it!.

    whooami

    @whooami

    Member

    nice to see this thread is resolved. 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] adding a plugins direcotry’ is closed to new replies.