mirror of
https://ghfast.top/https://github.com/bradvin/wp-git-sync.git
synced 2026-06-10 14:53:57 +08:00
47 lines
855 B
PHP
47 lines
855 B
PHP
<?php
|
|
/**
|
|
* Plugin Name: WP Git Sync
|
|
* Description: Sync WordPress posts to GitHub.
|
|
* Version: 0.1.1
|
|
* Requires at least: 6.4
|
|
* Requires PHP: 7.4
|
|
* Author: Foo Bender
|
|
* License: GPLv2 or later
|
|
* Text Domain: wp-git-sync
|
|
* Domain Path: /languages
|
|
*
|
|
* @package WPGitSync
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* Plugin version.
|
|
*/
|
|
define( 'WPGS_VERSION', '0.1.1' );
|
|
|
|
/**
|
|
* Absolute path to main plugin file.
|
|
*/
|
|
define( 'WPGS_PLUGIN_FILE', __FILE__ );
|
|
|
|
/**
|
|
* Absolute path to plugin directory.
|
|
*/
|
|
define( 'WPGS_PLUGIN_DIR', __DIR__ );
|
|
|
|
require_once WPGS_PLUGIN_DIR . '/includes/class-wpgs-plugin.php';
|
|
|
|
/**
|
|
* Initialize the plugin.
|
|
*
|
|
* Side effects:
|
|
* - Registers WordPress hooks (admin settings, pages, actions).
|
|
*
|
|
* @return void
|
|
*/
|
|
add_action( 'plugins_loaded', static function (): void {
|
|
WPGS_Plugin::instance();
|
|
} );
|