Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I’m having the same issue.
    Despite the fact I had disabled the “Core notification e-mails” option, the e-mails is still sent for Plugins updates.

    I’ve understood that is only for the “CORE”s updates.
    Is there any way to disable the e-mail notifications for plugins and themes updates?

    I have the “Post SMPT” plugin installed.

    Thank you

    It’s true.
    With mod_security disabled the “Error: Not Acceptable” not appears anymore.

    @timwhitlock I think you should try figure out a way to Loco Translate to works with mod_security enabled because is an very important security component.

    Thread Starter isaacdemorais1

    (@isaacdemorais1)

    Reading the code of wp-hotel-booking.php, I found out that the correct place to put the .MO file is “/wp-content/languages/plugins”.

    I sugest that you improve the code bellow to read the translations also in the “/wp-content/plugins/wp-hotel-booking/languages”.

    /**
    * Load language for the plugin
    */
    public function load_text_domain() {
    // prefix
    $prefix = basename( dirname( plugin_basename( __FILE__ ) ) );
    $locale = get_locale();
    $dir = $this->plugin_path( ‘languages’ );
    $mofile = false;

    $globalFile = WP_LANG_DIR . ‘/plugins/’ . $prefix . ‘-‘ . $locale . ‘.mo’;
    $pluginFile = $dir . ‘/’ . $prefix . ‘-‘ . $locale . ‘.mo’;

    if ( file_exists( $globalFile ) ) {
    $mofile = $globalFile;
    } else if ( file_exists( $pluginFile ) ) {
    $mofile = $pluginFile;
    }

    if ( $mofile ) {
    // In themes/plugins/mu-plugins directory
    load_textdomain( ‘tp-hotel-booking’, $mofile );
    }
    }

Viewing 3 replies - 1 through 3 (of 3 total)