-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost-type-spotlight.php
58 lines (47 loc) · 1.89 KB
/
post-type-spotlight.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName,
/**
* Plugin Name: Post Type Spotlight
* Plugin URI: https://wordpress.org/plugins/post-type-spotlight/
* Description: Allows admin chosen post types to have a featured post check box on the edit screen. Also adds appropriate classes to front end post display, and allows featured posts to be queried via a taxonomy query.
* Requires at least: 5.1
* x-release-please-start-version
* Version: 3.0.3
* x-release-please-end
* Author: Linchpin & Jonathan Desrosiers
* Author URI: https://linchpin.com/?utm_source=post-type-spotlight&utm_medium=plugin-admin-page&utm_campaign=wp-plugin
* License: GPLv2
* Text Domain: post-type-spotlight
* Domain Path: /languages
*/
// Make sure we don't expose any info if called directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Globals
*/
if ( ! defined( 'POST_TYPE_SPOTLIGHT_VERSION' ) ) {
// x-release-please-start-version
define( 'POST_TYPE_SPOTLIGHT_VERSION', '3.0.3' );
// x-release-please-end
}
if ( ! defined( 'POST_TYPE_SPOTLIGHT_RELEASE_DATE' ) ) {
define( 'POST_TYPE_SPOTLIGHT_RELEASE_DATE', '01/15/2020' );
}
// Define the main plugin file to make it easy to reference in subdirectories.
if ( ! defined( 'POST_TYPE_SPOTLIGHT_FILE' ) ) {
define( 'POST_TYPE_SPOTLIGHT_FILE', __FILE__ );
}
if ( ! defined( 'POST_TYPE_SPOTLIGHT_PATH' ) ) {
define( 'POST_TYPE_SPOTLIGHT_PATH', trailingslashit( __DIR__ ) );
}
if ( ! defined( 'POST_TYPE_SPOTLIGHT_PLUGIN_URL' ) ) {
define( 'POST_TYPE_SPOTLIGHT_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
}
if ( ! defined( 'POST_TYPE_SPOTLIGHT_PLUGIN_NAME' ) ) {
define( 'POST_TYPE_SPOTLIGHT_PLUGIN_NAME', esc_html__( 'Post Type Spotlight', 'post-type-spotlight' ) );
}
require_once 'class-post-type-spotlight.php';
require_once 'class-post-type-spotlight-block-editor.php';
new Post_Type_Spotlight();
new Post_Type_Spotlight_Block_Editor();