-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathllms-txt-for-wp.php
37 lines (32 loc) · 1.06 KB
/
llms-txt-for-wp.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
<?php
/**
* Plugin Name: LLMs.txt for WP
* Plugin URI: https://github.com/WP-Autoplugin/llms-txt-for-wp
* Description: Generates LLM-friendly content as llms.txt and provides markdown versions of posts.
* Version: 1.0.0
* Author: Balázs Piller
* Author URI: https://wp-autoplugin.com
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: llms-txt-for-wp
* Domain Path: /languages
*
* @package LLMsTxtForWP
*/
// Abort if this file is called directly.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Define constants.
define( 'LLMS_TXT_VERSION', '1.0.0' );
define( 'LLMS_TXT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'LLMS_TXT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'LLMS_TXT_PLUGIN_FILE', __FILE__ );
// Include Composer autoloader if available.
if ( file_exists( LLMS_TXT_PLUGIN_DIR . 'vendor/autoload.php' ) ) {
require LLMS_TXT_PLUGIN_DIR . 'vendor/autoload.php';
}
// Load the core class.
require LLMS_TXT_PLUGIN_DIR . 'includes/class-llms-txt-core.php';
// Initialize the plugin.
new LLMS_Txt_Core();