WordPress.org

Ready to get started?Download WordPress

Forums

ReOrder Post Within Categories
Language bug (2 posts)

5 stars
  1. nextplusapp
    Member
    Posted 1 year ago #

    The language file is not loaded.
    After review your code, I found that you place the load_plugin_textdomain in the constructor, see the follow:

    /**
    * Constructor
    */
    function ReOrderPostWithinCategory() {
       load_plugin_textdomain('deefusereorder', false, basename(dirname(__FILE__)) . '/languages');

    The load_plugin_textdomain function should be called only in the WordPress init hook.

    Quick resovle:

    I place the load_plugin_textdomain in the saveOptionPlugin function.

    //Action qui sauvegardera le paam├ętrage du plugin
    add_action('init', array(&$this, 'saveOptionPlugin'));

    It Works.

  2. lucasbhealy
    Member
    Posted 11 months ago #

    Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.