wp-git-sync/wp-git-sync.php
2026-02-09 11:40:52 +00:00

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();
} );