# wplingua/trunk/data/node.php

Translate and Go multilingual – Automatic AI translation – wpLingua, version trunk. 152 lines.

- Page: https://pluginprobe.com/plugins/wplingua/trunk/code/data/node.php
- Raw: https://pluginprobe.com/plugins/wplingua/trunk/raw/data/node.php
- Modified: 2026-08-25T00:08:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wplingua/trunk/code/data/node.php#L10-L20`.

```php
<?php

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}


/**
 * Get selectors of excluded elements
 *
 * @return array
 */
function wplng_data_excluded_selector_default() {
	return array(
		// Default nodes
		'style',
		'svg',
		'canvas',
		'address',
		'iframe',
		'code',
		'xml',

		// Link tag
		'link[rel="EditURI"]',
		'link[title="oEmbed (JSON)"]',
		'link[title="oEmbed (XML)"]',
		'link[title="JSON"]',
		'link[type="application/rss+xml"]',

		// Default class
		'.no-translate',
		'.notranslate',

		// wpLingua
		'#wplingua-load-in-progress-data',

		// Wordpress
		'#wpadminbar',
		'.wp-embed-share-input',
		'[aria-label="HTML"]',
		'#media-views-js-extra',
		'#wp-api-request-js-extra',
		'body#error-page',
		'.wp-die-message',

		// wpLingua
		'link[hreflang]',
		'.wplng-switcher',
		'.wplingua-menu',
		'#wplng-modal-edit-container',

		// Comment
		'.comment-content',
		'.comment-author',
		'.comment_postinfo .fn',

		// Author name
		'.author.vcard',
		'.entry-author .fn',

		// Plugin: Query Monitor
		'#query-monitor',
		'#query-monitor-main',

		// Plugin: SecuPress
		'#secupress-donttranslate',

		// Plugin: Debug Bar
		'#querylist',

		// Plugin: Google Site Kit
		'#googlesitekit-base-data-js-extra',

		// Plugin: Smash Balloon - Social photo feed
		'#sb_instagram',

		// Plugin: Complianz GDPR
		'.cookies-per-purpose .name',

		// Plugin: SEOPress
		'#seopress-metabox-js-extra',

		// Plugin: WooCommerce
		'.woocommerce-Price-amount',

		// Plugin: events-calendar-pro
		'.tribe-event-date-start',

		// Plugin: top-10
		'.tptn_counter',
	);
}


/**
 * Get selectors of excluded elements in visual editor
 *
 * @return array
 */
function wplng_data_excluded_editor_link() {
	global $wplng_data_excluded_editor_link;

	if ( null !== $wplng_data_excluded_editor_link ) {
		return $wplng_data_excluded_editor_link;
	}

	$wplng_data_excluded_editor_link = apply_filters(
		'wplng_excluded_editor_link',
		array(
			'textarea',
			'pre',
			'option',
		)
	);

	return $wplng_data_excluded_editor_link;
}


/**
 * Get selectors of excluded nodes text
 * Exclude the node content, not the attributes (title, href, ...)
 *
 * @return array
 */
function wplng_data_excluded_node_text() {
	global $wplng_data_excluded_node_text;

	if ( null !== $wplng_data_excluded_node_text ) {
		return $wplng_data_excluded_node_text;
	}

	$wplng_data_excluded_node_text = apply_filters(
		'wplng_excluded_node_text',
		array(
			'style',
			'svg',
			'canvas',
			'link',
			'script',
			'code',

			// Plugin: Contact Form 7
			'.wpcf7-textarea',
		)
	);

	return $wplng_data_excluded_node_text;
}

```
