WordPress plugin intelligence profile

For Your Eyes Only

Add a restricted block for specified users.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.9
Current version1.2.5
WordPress coverageTested up to WordPress 6.9
Minimum stackWP 6.6 · PHP 7.4
Directory statusactive
Last directory update3 Aug 20263mo ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records For Your Eyes Only version 1.2.5 as active, updated 3mo ago and tested up to WordPress 6.9.

Overview

About this plugin

This plugin adds a block to your block editor.

This block changes its display depending on a current user’s capability.

  • You can set capability for block.
  • If a current user has a capability for the block, its content will be replaced.
  • Or else, block is displayed as log in link.
  • This block is an inner block, so you can nest any blocks inside it. Convert it to a reusable block for your productivity.

See screenshot for how block will be displayed.

This plugin use REST API to convert block content, so you can use it with cached WordPress.

Even if you use CDN like CloudFront or Cloudflare, this plugin displays proper contents for each users.

For performance enhancement, Cookie Tasting is recommended.

It decreases server access including REST API by checking COOKIE value before accessing to server side script.

Hooks

Display Customization

  • fyeo_tag_line – Customize the default tagline displayed to users without capability. %s will be replaced with login URL.
  • fyeo_login_url – Replace the login URL. Default is wp_login_url().
  • fyeo_redirect_url – Customize redirect URL after login. Receives post object as second argument.
  • fyeo_redirect_key – Change query parameter key for redirect. Default is redirect_to.

-

fyeo_enqueue_style – Whether to enqueue default theme style. Return false to disable.

Capability Control

-

fyeo_capabilities_list – Customize available capabilities list shown in block settings.

  • fyeo_default_capability – Change default capability. Default is read.

-

fyeo_user_has_cap – Override capability check result. Receives $has_cap, $capability, $user.

Rendering

-

fyeo_default_render_style – Set default rendering style. Return dynamic for PHP rendering, empty string for async.

-

fyeo_can_display_non_public – Allow displaying restricted content for non-public posts. Receives $post object.

REST API

-

fyeo_minimum_rest_capability – Control REST API access. Return false to deny access.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • login
  • membership
  • restrict
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.9
Minimum requirementsWordPress 6.6 · PHP 7.4
Update activity3 Aug 20263mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.