isaacdemorais1
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Updates Manager] how to switch off email notificationsHi,
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
Forum: Plugins
In reply to: [WooCommerce] Not Acceptable! This error was generated by Mod_SecurityIt’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.
Forum: Plugins
In reply to: [WP Hotel Booking] Add another Extra Room Packages not workingReading 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 );
}
}