Giter Site home page Giter Site logo

for-your-eyes-only's Introduction

For Your Eyes Only

Contributors: Takahashi_Fumiki, hametuha
Tags: membership, login, restrict, gutenberg
Requires at least: 5.0.0
Tested up to: 5.1.1
Stable tag: 1.0.1
Requires PHP: 7.0.0
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.txt

Add a restricted block for specified users.

Description

This plugin adds a block to your block editor. This block change it's 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 screen shot 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 decrease server access including REST API by checking COOKIE value before accessing to server side script.

Installation

  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.

Frequently Asked Questions

How to Contribute

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

Screenshots

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

Changelog

1.0.1

  • Add auto deploy.

1.0.0

  • First Release.

for-your-eyes-only's People

Contributors

fumikito avatar

Watchers

 avatar  avatar

for-your-eyes-only's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.