Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Edison Costa

    (@lojaplus)

    Grato !

    Thread Starter Edison Costa

    (@lojaplus)

    [SOLVED]

    Thread Starter Edison Costa

    (@lojaplus)

    [SOLVED]

    1 – Changing the language files for: wooCommerce-advanced-free-shipping-xx_XX.po and mo.

    2 – Inclusion of the line of code in the file: wooCommerce-advanced-free-shipping.php.

    public function __construct() {
    		// Load plugin text domain
    		add_action( 'init', array( $this, 'load_plugin_textdomain' ) );

    e

    /**
    	 * Load the plugin text domain for translation.
    	 *
    	 * @return void
    	 */
    	public function load_plugin_textdomain() {
    		$locale = apply_filters( 'plugin_locale', get_locale(), 'woocommerce-advanced-free-shipping' );
    
    		load_textdomain( 'woocommerce-advanced-free-shipping', trailingslashit( WP_LANG_DIR ) . 'woocommerce-advanced-free-shipping-' . $locale . '.mo' );
    		load_plugin_textdomain( 'woocommerce-advanced-free-shipping', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    	}

    3 – Replacing textdomain ‘WAFS’, ‘WAPL’ and ‘WooCommerce’ for WooCommerce-advanced-free-shipping.

    Tests and was running perfectly.

    After completion of the translation for ‘pt_BR’, if you want I can send the files.

    To finalize the file includes: conditions-Table.php the code below, this way it is possible to leave the stub method in a method or schedule.

    $method_conditions = get_posts( array( 'posts_per_page' => '-1', 'post_status' => 'any', 'post_type' => 'wafs' ) );

    Thanks for the support.

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