Input field placeholder text not translate with loco translate

Hi theme i have tried lot of time but all time i am missed. I have tired to translate my site language all test are working good with loco translate but footer widget area subscribe input placeholder text not translate. Can any one help me. Here is my code.

/**************************************
*Creating Recent Post the widget
***************************************/

class bizw_subscribe_widget extends WP_Widget {

function __construct() {

parent::__construct(
‘bizw_subscribe_widget’,

esc_html__( ‘Subscribe’, ‘bizwalls’ ),

array( ‘description’ => esc_html__( ‘Add footer subscribe form’, ‘bizwalls’ ), )
);

}

public function widget( $args, $instance ) {
$title = apply_filters( ‘widget_title’, $instance[‘title’] );

echo $args[‘before_widget’];
if ( ! empty( $title ) )
echo $args[‘before_title’] . $title . $args[‘after_title’];

if( isset( $_POST[‘subscribe’] ) ){

$this->bizw_subscribe_ajax( );
}

?>

” class=”input-box” required>
” class=”input-box” required>
” />
” class=”submit-button”>

get_field_id( ‘title’ ); ?>”>
get_field_id( ‘title’ ); ?>” name=”get_field_name( ‘title’ ); ?>” type=”text” value=”” />

public function update( $new_instance, $old_instance ) {
$instance = array();
$instance[‘title’] = ( ! empty( $new_instance[‘title’] ) ) ? strip_tags( $new_instance[‘title’] ) : ”;

return $instance;
}
} // Class bizw_subscribe_widget ends here

function bizw_subscribe_load_widget() {
register_widget( ‘bizw_subscribe_widget’ );
}
add_action( ‘widgets_init’, ‘bizw_subscribe_load_widget’ );

Read more here:: Input field placeholder text not translate with loco translate

Leave a Reply

Your email address will not be published. Required fields are marked *