PluginProbe ʕ •ᴥ•ʔ
پارسی دیت – Parsi Date / 5.1.2
پارسی دیت – Parsi Date v5.1.2
6.2.1 6.2 6.1 5.1.6 5.1.7 5.1.8 5.1.8.2 6.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.0.0-alpha 2.1 2.1.1 2.1.2 2.1.3 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0.1 2.3.0.2 2.3.1 2.3.2 2.3.3 2.3.4 3.0.1 3.0.2 3.0.3 4.0.0 4.0.1 4.0.2 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5
wp-parsidate / includes / fixes-misc.php
wp-parsidate / includes Last commit date
admin 1 year ago plugins 1 year ago views 1 year ago widget 1 year ago fixes-archive.php 1 year ago fixes-archives.php 1 year ago fixes-calendar.php 1 year ago fixes-dates.php 1 year ago fixes-misc.php 1 year ago fixes-permalinks.php 1 year ago general.php 1 year ago install.php 1 year ago parsidate.php 1 year ago settings.php 1 year ago tools.php 1 year ago
fixes-misc.php
53 lines
1 <?php
2
3 defined( 'ABSPATH' ) or exit( 'No direct script access allowed' );
4
5 /**
6 * Fixes numbers in selected options
7 *
8 * @author Mobin Ghasempoor
9 * @author Ehsaan
10 * @package WP-Parsidate
11 * @subpackage Fixes/NumbersAndArabic
12 */
13
14 if ( get_locale() === 'fa_IR' ) {
15 global $wpp_settings;
16
17 if ( wpp_is_active( 'conv_page_title' ) ) {
18 add_filter( 'wp_title', 'fix_number', 1000 );
19 }
20
21 if ( wpp_is_active( 'conv_title' ) ) {
22 add_filter( 'the_title', 'fix_number', 1000 );
23 }
24
25 if ( wpp_is_active( 'conv_contents' ) ) {
26 add_filter( 'the_content', 'fix_number', 1000 );
27 }
28
29 if ( wpp_is_active( 'conv_excerpt' ) ) {
30 add_filter( 'the_excerpt', 'fix_number', 1000 );
31 }
32
33 if ( wpp_is_active( 'conv_comments' ) ) {
34 add_filter( 'comment_text', 'fix_number', 1000 );
35 }
36
37 if ( wpp_is_active( 'conv_comment_count' ) ) {
38 add_filter( 'comments_number', 'fix_number', 1000 );
39 }
40
41 if ( wpp_is_active( 'conv_cats' ) ) {
42 add_filter( 'wp_list_categories', 'fix_number', 1000 );
43 }
44
45 if ( wpp_is_active( 'conv_arabic' ) ) {
46 add_filter( 'the_content', 'fix_arabic', 1000 );
47 add_filter( 'the_title', 'fix_arabic', 1000 );
48 add_filter( 'comment_text', 'fix_arabic', 1000 );
49 add_filter( 'wp_list_categories', 'fix_arabic', 1000 );
50 add_filter( 'the_excerpt', 'fix_arabic', 1000 );
51 add_filter( 'wp_title', 'fix_arabic', 1000 );
52 }
53 }