به محتویات بروید
WordPress.org

فارسی (افغانستان)

  • پوسته‌ها
  • افزونه‌ها
  • اخبار
  • درباره
  • Contact
  • دریافت وردپرس
دریافت وردپرس
WordPress.org

Plugin Directory

For Your Eyes Only

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

For Your Eyes Only

توسط Fumiki Takahashi
دانلود
  • جزئیات
  • نقد و بررسی‌ها
  • نصب
  • توسعه
پشتیبانی

توضیحات

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.

عکس‌های صفحه

  • You get a new block to restrict non-members.

بلوک‌ها

این افزونه 1 بلوک ارائه می‌دهد.

  • Restricted Block This block will be displayed only for specified users.

نصب

  1. Upload the plugin files to the /wp-content/plugins/for-your-eyes-only directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. You get new block named Restricted Block on Block Editor.

سوالات متداول

How to Contribute

We host our code on Github, so feel free to send PR or issues.

نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

توسعه دهندگان و همکاران

“For Your Eyes Only” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان
  • Fumiki Takahashi
  • TAROSKY INC.
  • Hametuha INC.

“For Your Eyes Only” به 1 زبان ترجمه شده است. با تشکر از مترجمین برای همکاری و کمک‌هایشان.

ترجمه “For Your Eyes Only” به زبان شما.

علاقه‌ مند به توسعه هستید؟

کد را مرور کنید, را بررسی کنید مخزن SVN, یا مشترک شوید گزارش توسعه توسط RSS.

گزارش تغییرات

1.2.1

  • Bump PHP and WordPress requirements.
  • Arranged tranpilation structure.

1.1.0

  • Ownership is now changed. Thanks to @hametuha for taking over this plugin.
  • Add dynamic mode. This works as PHP rendering.

1.0.1

  • Add auto deploy.

1.0.0

  • First Release.

اطلاعات

  • Version 1.2.3
  • Last updated 4 هفته پیش
  • Active installations کمتر از 10
  • WordPress version 6.6 یا بالاتر
  • Tested up to 6.9.1
  • PHP version 7.4 یا بالاتر
  • Languages

    English (US) و Japanese.

    به زبان خودتان ترجمه کنید

  • Tags
    loginmembershiprestrict
  • نمایش پیشرفته

امتیازها

No reviews have been submitted yet.

افزودن ارزیابی من

See all reviews

مشارکت کنندگان

  • Fumiki Takahashi
  • TAROSKY INC.
  • Hametuha INC.

پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

مشاهده انجمن پشتیبانی

  • درباره ما
  • اخبار
  • میزبانی
  • حریم خصوصی
  • ویترین
  • پوسته‌ها
  • افزونه‌ها
  • الگوها
  • یادگیری
  • پشیتبانی
  • توسعه‌دهندگان
  • WordPress.tv ↗
  • مشارکت کنید
  • رویدادها
  • حمایت ↗
  • پنج برای آینده
  • WordPress.com ↗
  • مت ↗
  • بی‌بی‌پرس ↗
  • بادی‌پرس ↗
WordPress.org
WordPress.org

فارسی (افغانستان)

  • از حساب X (تویتر سابق) ما دیدن کنید
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • صفحه ی فیسبوک ما را بازدید نمایید
  • بازدید از حساب کاربری ما در اینستاگرام
  • بازدید از حساب کاربری ما در LinkedIn
  • Visit our TikTok account
  • از کانال یوتیوب ما دیدن کنید
  • Visit our Tumblr account
کد شعر است.