WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] adding a plugins direcotry (9 posts)

  1. mozey
    Member
    Posted 8 years ago #

    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 ../

  2. mozey
    Member
    Posted 8 years ago #

    is /wp-content/plugins hard coded in? i THINK it might be!, what is way around this?

  3. whooami
    Member
    Posted 8 years ago #

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

  4. mozey
    Member
    Posted 8 years ago #

    what is $domain?

  5. mozey
    Member
    Posted 8 years ago #

    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');

  6. mozey
    Member
    Posted 8 years ago #

    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!.

  7. whooami
    Member
    Posted 8 years ago #

    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.

  8. mozey
    Member
    Posted 8 years ago #

    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!.

  9. whooami
    Member
    Posted 8 years ago #

    nice to see this thread is resolved. :)

Topic Closed

This topic has been closed to new replies.

About this Topic