get_script(); if ( $script ) { include $script; die(); } }, -PHP_INT_MAX // Make sure to be the first. Some plugins using this hook also to prevent usual rendering. ); } /** * @return string|void */ public function get_script() { if ( ! User::canManageTranslations() ) { return false; } $app = Sanitize::stringProp( self::QUERY_VAR_ATE_WIDGET_SCRIPT, $_GET ); if ( self::SCRIPT_NAME !== $app ) { return false; } $script = WPML_TM_PATH . '/res/js/' . $app . '.php'; return file_exists( $script ) ? $script : false; } }