Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
better-wp-security
/
core
/
modules
/
backup
/
entries
:
dashboard.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * WordPress dependencies */ import { setLocaleData } from '@wordpress/i18n'; import { registerPlugin } from '@wordpress/plugins'; import { useDispatch } from '@wordpress/data'; // Silence warnings until JS i18n is stable. setLocaleData( { '': {} }, 'ithemes-security-pro' ); /** * Internal dependencies */ import { useSingletonEffect } from '@ithemes/security-hocs'; import { slug, settings } from './dashboard/index'; import './dashboard/style.scss'; registerPlugin( 'itsec-backup-dashboard', { render() { return <App />; }, } ); function App() { const { registerCard } = useDispatch( 'ithemes-security/dashboard' ); useSingletonEffect( App, () => registerCard( slug, settings ) ); return null; }