Test Failed
Push — master ( e4b526...599770 )
by Stiofan
06:48
created

Kleo.php ➔ geodir_kelo_title_translation()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 1
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * Kelo theme compatibility functions.
4
 *
5
 * This file lets the GeoDirectory Plugin use the X theme HTML wrappers to fit and work perfectly.
6
 *
7
 * @since 1.0.0
8
 * @package GeoDirectory
9
 */
10
11
// Page titles translatable CPT names
12
function geodir_kelo_title_translation( $args) {
13
14
    if(function_exists('geodir_is_geodir_page')){
15
        $args['title'] = __($args['title'],'geodirectory');
16
    }
17
18
    return $args;
19
}
20
add_filter( 'kleo_title_args', 'geodir_kelo_title_translation', 10, 1 );
21
22
23