PluginProbe
Post Type Transfer / 1.5
Post Type Transfer v1.5
trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6
post-type-transfer / post-type-transfer.php

post-type-transfer.php in Post Type Transfer 1.5, at post-type-transfer.php

63 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Post Type Transfer
4 * Plugin URI: https://wordpress.org/plugins/post-type-transfer/
5 * Description: This plugin will allow user to change post type to other public post types or page.
6 * Requires at least: 6.6
7 * Requires PHP: 7.4
8 * Author: KrishaWeb
9 * Author URI: https://www.krishaweb.com/
10 * Text Domain: post-type-transfer
11 * Domain Path: /languages
12 * Version: 1.5
13 * License: GPLv3 or later
14 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
15 *
16 * @package Post_Type_Transfer
17 */
18
19 if ( ! defined( 'ABSPATH' ) ) {
20 exit;
21 }
22 define( 'POST_TYPE_TRANSFER_VERSION', '1.5' );
23 require_once plugin_dir_path( __FILE__ ) . 'admin/class-post-type-transfer.php';
24 require_once plugin_dir_path( __FILE__ ) . 'admin/class-ptt-quick-edit.php';
25 require_once plugin_dir_path( __FILE__ ) . 'lib/block/class-ptt-gutenberg-metabox.php';
26
27 /**
28 * Load plugin textdomain.
29 */
30 function ptt_textdomain() {
31 load_plugin_textdomain( 'post-type-transfer', false, basename( __DIR__ ) . '/languages' );
32 }
33 add_action( 'plugins_loaded', 'ptt_textdomain' );
34
35 /**
36 * Plugin activate hook.
37 */
38 function ptt_activate() {
39 // Activation code here...
40 }
41 register_activation_hook( __FILE__, 'ptt_activate' );
42
43 /**
44 * Plugin deactivate hook.
45 */
46 function ptt_deactivate() {
47 // Deactivation code here...
48 }
49 register_deactivation_hook( __FILE__, 'ptt_deactivate' );
50
51 /**
52 * Plugin class init.
53 */
54 function ptt_init() {
55 // Generate the plugin instance.
56 if ( ! class_exists( 'Post_Type_Transfer' ) ) {
57 return;
58 }
59 // Initialize the plugin.
60 new Post_Type_Transfer();
61 }
62 ptt_init();
63