| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Custom Permalinks |
| 4 |
* Plugin URI: https://www.custompermalinks.com/ |
| 5 |
* Description: Set custom permalinks on a per-post basis. |
| 6 |
* Version: 3.1.2 |
| 7 |
* Requires at least: 2.6 |
| 8 |
* Requires PHP: 7.0 |
| 9 |
* Author: Sami Ahmed Siddiqui |
| 10 |
* Author URI: https://www.linkedin.com/in/sami-ahmed-siddiqui/ |
| 11 |
* License: GPLv3 |
| 12 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 13 |
* |
| 14 |
* Text Domain: custom-permalinks |
| 15 |
* Domain Path: /languages/ |
| 16 |
* |
| 17 |
* @package CustomPermalinks |
| 18 |
*/ |
| 19 |
|
| 20 |
/** |
| 21 |
* Custom Permalinks - Update Permalinks of Post/Pages and Categories |
| 22 |
* Copyright 2008-2025 Sami Ahmed Siddiqui <sami.siddiqui@yasglobal.com> |
| 23 |
* |
| 24 |
* This program is free software: you can redistribute it and/or modify |
| 25 |
* it under the terms of the GNU General Public License as published by |
| 26 |
* the Free Software Foundation, either version 3 of the License, or |
| 27 |
* (at your option) any later version. |
| 28 |
|
| 29 |
* This program is distributed in the hope that it will be useful, |
| 30 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 31 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 32 |
* GNU General Public License for more details. |
| 33 |
|
| 34 |
* You should have received a copy of the GNU General Public License |
| 35 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 36 |
*/ |
| 37 |
|
| 38 |
if ( ! defined( 'ABSPATH' ) ) { |
| 39 |
exit; |
| 40 |
} |
| 41 |
|
| 42 |
if ( ! defined( 'CUSTOM_PERMALINKS_FILE' ) ) { |
| 43 |
define( 'CUSTOM_PERMALINKS_FILE', __FILE__ ); |
| 44 |
} |
| 45 |
|
| 46 |
// Include the main Custom Permalinks class. |
| 47 |
require_once plugin_dir_path( CUSTOM_PERMALINKS_FILE ) . 'includes/class-custom-permalinks.php'; |
| 48 |
|