Title: Modify Post Views
Last modified: June 15, 2020

---

# Modify Post Views

 *  Resolved [osama4855](https://wordpress.org/support/users/osama4855/)
 * (@osama4855)
 * [6 years ago](https://wordpress.org/support/topic/modify-post-views/)
 * hi Jeremy
 * This an example for my website existing views for a post 6٬627 so i want to remove
   this ( ٬ ) between numbers
 * Thanks a lot.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmodify-post-views%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [6 years ago](https://wordpress.org/support/topic/modify-post-views/#post-12988733)
 * This number format is defined by your language; if your site is set to Arabic,
   that separator will be set to `٬` by default, in that string and everywhere in
   WordPress. This is defined by WordPress itself here:
    [https://translate.wordpress.org/projects/wp/dev/ar/default/?filters%5Bterm%5D=format&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc](https://translate.wordpress.org/projects/wp/dev/ar/default/?filters%5Bterm%5D=format&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc)
 * If you’d rather have your own separator, you should be able to use a plugin like
   [this one](https://wordpress.org/plugins/loco-translate/) to change the value
   set for the Arabic translation of `number_format_thousands_sep`.
 * Another alternative is to change that separator only in the string generated 
   by my plugin using the `jp_post_views_output` filter. Here is an example of how
   the filter can be used:
    [https://wordpress.org/support/topic/how-to-display-just-the-number-of-views-without-views-word/#post-12986373](https://wordpress.org/support/topic/how-to-display-just-the-number-of-views-without-views-word/#post-12986373)
 * In your case, you’d want to remove the use of the `number_format_i18n` function
   like so:
 *     ```
       /**
        * customize the output of the Views shortcode.
        *
        * @param string $view    Phrase outputting the number of views.
        * @param array  $views   Number of views.
        * @param string $post_id Post ID.
        */
       function jeherve_no_i18n_number( $view, $views, $post_id ) {
       	if ( isset( $views ) && ! empty( $views ) ) {
       		$view = sprintf(
       			esc_html(
       				_n(
       					'%s view',
       					'%s views',
       					$views['total'],
       					'jp-post-views'
       				)
       			),
       			$views['total']
       		);
       	} else {
       		$view = esc_html__( 'no views', 'jp-post-views' );
       	}
   
       	return $view;
       }
       add_filter( 'jp_post_views_output', 'jeherve_no_i18n_number', 10, 3 );
       ```
   
 *  Thread Starter [osama4855](https://wordpress.org/support/users/osama4855/)
 * (@osama4855)
 * [6 years ago](https://wordpress.org/support/topic/modify-post-views/#post-13015589)
 * hi Jeremy
 * Thanks for your advices, This plugin (loco-translate) is awesome & i can customize
   now the number format.
 * BUT .. What is the code or string that can keep the value of separator is empty?
   Can i type (null) for example?
 * Thanks a lot.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [6 years ago](https://wordpress.org/support/topic/modify-post-views/#post-13017625)
 * > What is the code or string that can keep the value of separator is empty? Can
   > i type (null) for example?
 * You should be able to save an empty string.

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

The topic ‘Modify Post Views’ is closed to new replies.

 * ![](https://ps.w.org/post-views-for-jetpack/assets/icon-256x256.png?rev=1518414)
 * [Post Views for Jetpack](https://wordpress.org/plugins/post-views-for-jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-views-for-jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-views-for-jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/post-views-for-jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-views-for-jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-views-for-jetpack/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/modify-post-views/#post-13017625)
 * Status: resolved