first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
class WPML_Notice_Show_On_Dashboard_And_WPML_Pages {
public static function is_on_page() {
if ( function_exists( 'get_current_screen' ) ) {
$screen = get_current_screen();
if ( 'dashboard' === $screen->id ) {
return true;
}
}
$current_page = array_key_exists( 'page', $_GET ) ? $_GET['page'] : null;
foreach ( array( 'sitepress-multilingual-cms', 'wpml-translation-management' ) as $page ) {
if ( strpos( $current_page, $page ) === 0 ) {
return true;
}
}
return false;
}
}