PHP Classes

File: src/googleauth-page/components/AdminFooter.jsx

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   WPMU Dev Plugin Test   src/googleauth-page/components/AdminFooter.jsx   Download  
File: src/googleauth-page/components/AdminFooter.jsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WPMU Dev Plugin Test
Test WordPress plugin created using WPMU Dev
Author: By
Last change:
Date: 1 month ago
Size: 615 bytes
 

Contents

Class file image Download
import { __, sprintf } from "@wordpress/i18n"; import { createInterpolateElement } from "@wordpress/element"; const AdminFooter = () => { //get textDomain const { textDomain } = window.wpmudevPluginTest; //get translated string const translatedString = sprintf( __( "Please use this url <em>%s</em> in your Google API's <strong>Authorized redirect URIs</strong> field", textDomain, ), window.wpmudevPluginTest.returnUrl, ); //return return ( <span> {createInterpolateElement(translatedString, { em: <em />, strong: <strong />, })} </span> ); }; export default AdminFooter;