generated from rahulsprajapati/wp-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.php
22 lines (19 loc) · 829 Bytes
/
plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* Plugin Name: Unpublish Media Endpoint
* Plugin URI: https://github.com/rahulsprajapati/unpublish-media-endpoint
* Description: This plugin will enable media endpoint in case of the post it was uploaded from ( set as post parent ) is no longer in publish status, to fix issue of not able to use it in another post REST endpoint as featured image. Core ticket: https://core.trac.wordpress.org/ticket/41445
* Author: Rahul Prajapati
* Version: 1.0.0
* Author URI: https://github.com/rahulsprajapati
* License: GPL2+
* Text Domain: unpublish-media-endpoint
* Domain Path: /languages
*
* @package unpublish-media-endpoint
*/
namespace Unpublish_Media_Endpoint;
const VERSION = '0.0.1';
require_once __DIR__ . '/inc/class-attachment-controller.php';
require_once __DIR__ . '/inc/namespace.php';
bootstrap();