Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • hsupyaenaung
    Participant

    Hi,

    The issue is still not yet resolved. Is there a way I can have access to older version of this plugin?

    hsupyaenaung
    Participant

    I believe it has something to do with this filter in the file named class-wpm-newsletter.php at Wp Multilingual plugin folder.

    class WPM_Newsletter {
    
    	/**
    	 * WPM_Newsletter constructor.
    	 */
    	public function __construct() {
    		...
    		...
    		...
    		add_filter( 'newsletter_user_subscribe', array( $this, 'save_profile_20' ) );
    		...
    	}
    ...
    	public function save_profile_20( $data ) {
    		$data['profile_20'] = wpm_get_language();
    
    		return $data;
    	}
    	public function translate_email( $text, $user ) {
    
    		if ( is_object( $user ) && $user->profile_20 ) {
    			$text = wpm_translate_string( $text, $user->profile_20 );
    		}
    
    		return $text;
    	}

    Is there a way I could put some code at my theme function.php to have a fix around this for now?

Viewing 2 posts - 1 through 2 (of 2 total)