PluginProbe
Translate and Go multilingual – Automatic AI translation – wpLingua / 2.10.3
Translate and Go multilingual – Automatic AI translation – wpLingua v2.10.3
2.16.5 2.16.4 2.16.3 2.16.2 2.16.1 2.16.0 2.15.2 2.15.1 2.15.0 2.14.3 2.14.2 2.14.1 2.14.0 2.13.1 2.13.0 2.12.3 2.12.2 2.12.1 trunk 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.2.0 All 110 releases
wplingua / data / node.php

node.php in Translate and Go multilingual – Automatic AI translation – wpLingua 2.10.3, at data/node.php

123 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // If this file is called directly, abort.
4 if ( ! defined( 'WPINC' ) ) {
5 die;
6 }
7
8
9 /**
10 * Get selectors of excluded elements
11 *
12 * @return array
13 */
14 function wplng_data_excluded_selector_default() {
15 return array(
16 // Default nodes
17 'style',
18 'svg',
19 'canvas',
20 'address',
21 'iframe',
22 'code',
23 'xml',
24
25 // Link tag
26 'link[rel="EditURI"]',
27 'link[title="oEmbed (JSON)"]',
28 'link[title="oEmbed (XML)"]',
29 'link[title="JSON"]',
30 'link[type="application/rss+xml"]',
31
32 // Default class
33 '.no-translate',
34 '.notranslate',
35
36 // Wordpress
37 '#wpadminbar',
38 '.wp-embed-share-input',
39 '[aria-label="HTML"]',
40 '#media-views-js-extra',
41 '#wp-api-request-js-extra',
42 'body#error-page',
43 '.wp-die-message',
44
45 // wpLingua
46 'link[hreflang]',
47 '.wplng-switcher',
48 '.wplingua-menu',
49 '#wplng-modal-edit-container',
50
51 // Comment
52 '.comment-content',
53 '.comment-author',
54 '.comment_postinfo .fn',
55
56 // Author name
57 '.author.vcard',
58 '.entry-author .fn',
59
60 // Plugin: Query Monitor
61 '#query-monitor',
62 '#query-monitor-main',
63
64 // Plugin: SecuPress
65 '#secupress-donttranslate',
66
67 // Plugin: Debug Bar
68 '#querylist',
69
70 // Plugin: Google Site Kit
71 '#googlesitekit-base-data-js-extra',
72
73 // Plugin: Smash Balloon - Social photo feed
74 '#sb_instagram',
75
76 // Plugin: Complianz GDPR
77 '.cookies-per-purpose .name',
78
79 // Plugin: SEOPress
80 '#seopress-metabox-js-extra',
81 );
82 }
83
84
85 /**
86 * Get selectors of excluded elements in visual editor
87 *
88 * @return array
89 */
90 function wplng_data_excluded_editor_link() {
91 return apply_filters(
92 'wplng_excluded_editor_link',
93 array(
94 'textarea',
95 'pre',
96 'option',
97 )
98 );
99 }
100
101
102 /**
103 * Get selectors of excluded nodes text
104 *
105 * @return array
106 */
107 function wplng_data_excluded_node_text() {
108 return apply_filters(
109 'wplng_excluded_node_text',
110 array(
111 'style',
112 'svg',
113 'canvas',
114 'link',
115 'script',
116 'code',
117
118 // Plugin: Contact Form 7
119 '.wpcf7-textarea',
120 )
121 );
122 }
123