芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/www/wp-content/plugins/better-wp-security/core/modules/two-factor/entries/profile.js
/** * WordPress dependencies */ import { registerPlugin } from '@wordpress/plugins'; import { setLocaleData, __ } from '@wordpress/i18n'; // Silence warnings until JS i18n is stable. setLocaleData( { '': {} }, 'ithemes-security-pro' ); /** * Internal dependencies */ import App from './profile/app.js'; import { UserProfileFill } from '@ithemes/security.pages.profile'; export function initialize( { twoFactorOnboard } ) { registerPlugin( 'itsec-two-factor-profile', { render() { return (
{ ( { name, userId, user } ) => ( name === 'itsec-two-factor-profile' && (
) ) }
); }, order: 3, label: __( 'Two-Factor Authentication', 'better-wp-security' ), scope: 'solid-security-user-profile', isAvailable: ( user, currentUserId ) => { return user.solid_2fa !== 'not-available' && user.solid_2fa !== null && currentUserId === user.id; }, } ); }