Skip to content

Repository files navigation

wp-live-content

Code Style PHPStan Tests Code Coverage Badge Lines of Code Badge

Requirements

Installation

To install this package using Composer, follow these steps:

  1. Add the following to the repositories section of your composer.json:

    {
      "type": "vcs",
      "url": "git@github.com:yardinternet/wp-live-content.git"
    }
  2. Install this package with Composer:

    composer require yard/wp-live-content
  3. Run the Acorn WP-CLI command to discover this package:

    wp acorn package:discover

Configuration

Live content is opt-in per post type, so publish the config file to declare which post types it applies to:

wp acorn vendor:publish --provider="Yard\LiveContent\LiveContentServiceProvider"

This writes config/wp-live-content.php to your theme. List the post types there:

return [
    'post-types' => [
        'openpub-item',
    ],
];

The post types you list here decide where the Stuur push bericht button shows up in the block editor. Without this file the package falls back to its own default, which only covers openpub-item.

Usage

From a Blade template:

<x-yard-live-content post-id="{{ $postId }}" />

Editors send a push notification with the Stuur push bericht button under Status & visibility in the block editor.

The Stuur push bericht button in the block editor status panel

About us

banner

About

Liveblog for WordPress sites build with Acorn.

Topics

Resources

Contributing

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages