PluginProbe
Mark Posts / 2.2.5
Mark Posts v2.2.5
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 All 28 releases
mark-posts / mark-posts.php

mark-posts.php in Mark Posts 2.2.5, at mark-posts.php

82 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Mark Posts
5 * Description: Mark and highlight posts, pages and posts of custom post types within the posts overview.
6 * Plugin URI: https://wordpress.org/plugins/mark-posts
7 * Version: 2.2.5
8 * Author: Sven Hofmann & Michael Schoenrock
9 * Author URI: https://hofmannsven.com
10 * Contributor: Michael Schoenrock
11 * Contributor URI: https://www.halloecho.de
12 * License: GPL-2.0+
13 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
14 * Text Domain: mark-posts
15 * GitHub URI: https://github.com/hofmannsven/mark-posts
16 */
17
18 // If this file is called directly, abort.
19 if (! defined('WPINC')) {
20 exit;
21 }
22
23 /*----------------------------------------------------------------------------*
24 * Public-Facing Functionality
25 *----------------------------------------------------------------------------*/
26
27 /*
28 * plugin version
29 *
30 */
31 if (! defined('WP_MARK_POSTS_VERSION')) {
32 define('WP_MARK_POSTS_VERSION', '2.2.5');
33 }
34
35 /*
36 * plugin dir path
37 *
38 */
39 if (! defined('WP_MARK_POSTS_PATH')) {
40 define('WP_MARK_POSTS_PATH', plugin_dir_path(__FILE__));
41 }
42
43 /*
44 * plugin's class file
45 *
46 */
47 require_once plugin_dir_path(__FILE__).'public/class-mark-posts.php';
48
49 /*
50 * Register hooks that are fired when the plugin is activated or deactivated.
51 * When the plugin is deleted, the uninstall.php file is loaded.
52 *
53 */
54 register_activation_hook(__FILE__, ['Mark_Posts', 'activate']);
55 register_deactivation_hook(__FILE__, ['Mark_Posts', 'deactivate']);
56
57 /*
58 * Load the plugin text domain for translation
59 *
60 */
61 function mark_posts_load_textdomain()
62 {
63 load_plugin_textdomain('mark-posts', false, dirname(plugin_basename(__FILE__)).'/languages/');
64 }
65 add_action('plugins_loaded', 'mark_posts_load_textdomain');
66
67 /*
68 * Add action plugins_loaded
69 *
70 */
71 add_action('plugins_loaded', ['Mark_Posts', 'get_instance']);
72
73 /*----------------------------------------------------------------------------*
74 * Dashboard and Administrative Functionality
75 *----------------------------------------------------------------------------*/
76
77 if (is_admin()) {
78 require_once plugin_dir_path(__FILE__).'admin/class-mark-posts-marker.php';
79 require_once plugin_dir_path(__FILE__).'admin/class-mark-posts-admin.php';
80 add_action('plugins_loaded', ['Mark_Posts_Admin', 'get_instance']);
81 }
82