WordPress Developer Ukraine, Kyiv
WordPress Multisite Security: Capabilities, Roles, and Audit Logging

WordPress Multisite Security: Capabilities, Roles, and Audit Logging

Multisite permissions: super admins, site admins and what they can do In a single WordPress site, an administrator can do everything. In a Multisite network, there are two levels: super admins manage the network (themes, plugins, sites, users), site administrators manage their own site but cannot install code or add unfiltered HTML. Misunderstanding these levels…
Implement TOTP Two-Factor Authentication in WordPress Without a Plugin

Implement TOTP Two-Factor Authentication in WordPress Without a Plugin

Implement TOTP two-factor authentication in WordPress without a plugin Time-based one-time passwords (TOTP, RFC 6238) are what authenticator apps (Google Authenticator, Authy, 1Password) generate: a 6-digit code computed from a shared secret and the current time in 30-second steps. The server runs the same algorithm, so no third-party service is involved. A stolen or reused…
Add Custom User Roles and Capabilities to WordPress Programmatically

Add Custom User Roles and Capabilities to WordPress Programmatically

Add custom user roles and capabilities to WordPress programmatically A WordPress role is a named set of capabilities, stored in the wp_user_roles option. A user can have several roles, and code checks the capabilities, not the roles: current_user_can( 'edit_posts' ). Custom roles and capabilities let you give exactly the rights a job needs, instead of…