-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathwordpress-seo-qtranslate-x.php
74 lines (69 loc) · 1.98 KB
/
wordpress-seo-qtranslate-x.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* Plugin Name: Integration: Yoast SEO & qTranslate-X
* Plugin URI: https://wordpress.org/plugins/wp-seo-qtranslate-x/
* Description: Enables multilingual framework for plugin "Yoast SEO".
* Version: 1.2
* Author: qTranslate Team
* Author URI: http://qtranslatexteam.wordpress.com/about
* License: GPL2
* Tags: multilingual, multi, language, translation, qTranslate-X, Yoast SEO, Integration
* Author e-mail: [email protected]
* GitHub Plugin URI: https://github.com/qTranslate-Team/wp-seo-qtranslate-x/
* GitHub Branch: master
*/
if(!defined('ABSPATH'))exit;
define('QWPSEO_VERSION','1.2');
function qwpseo_init_language($url_info)
{
if(!defined('WPSEO_VERSION'))
return;
global $q_config;
if($url_info['doing_front_end']) {
require_once(dirname(__FILE__).'/qwpseo-front.php');
}else{
require_once(dirname(__FILE__).'/qwpseo-admin.php');
}
}
add_action('qtranslate_init_language', 'qwpseo_init_language');
/*
class WPSEO_Taxonomy_Meta
public static $defaults_per_term = array(
'wpseo_title' => '',
'wpseo_desc' => '',
'wpseo_metakey' => '',
'wpseo_canonical' => '',
'wpseo_bctitle' => '',
'wpseo_noindex' => 'default',
'wpseo_sitemap_include' => '-',
'wpseo_focuskw' => '',
'wpseo_linkdex' => '',
// Social fields.
'wpseo_opengraph-title' => '',
'wpseo_opengraph-description' => '',
'wpseo_opengraph-image' => '',
'wpseo_twitter-title' => '',
'wpseo_twitter-description' => '',
'wpseo_twitter-image' => '',
);
*/
function qwpseo_get_meta_keys(){
return array(
'wpseo_title',
'wpseo_desc',
'wpseo_metakey',
'wpseo_canonical',
'wpseo_bctitle',
//'wpseo_noindex',
'wpseo_focuskw',
//'wpseo_sitemap_include',
//'wpseo_linkdex',
// Social fields.
'wpseo_opengraph-title',
'wpseo_opengraph-description',
//'wpseo_opengraph-image',
'wpseo_twitter-title',
'wpseo_twitter-description',
//'wpseo_twitter-image',
);
}