dendev / plpwpredirect
wpredirect for pulpy project
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:libs
Requires (Dev)
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-12-21 20:17:09 UTC
README
Simple redirect in wp
Install
Pour composer
composer require dendev/plpwpredirect
# "minimum-stability": "dev",
Dans le code
<?php require 'vendor/autoload.php'; use DenDev\Plpwpredirect\Redirect; $root_path = plugin_dir_path( __FILE__ ); $root_url = plugins_url() . '/package/'; $redirect = Redirect::get_instance( array( 'root_path' => $root_path, 'root_url' => $root_url, 'set_update_manager' => true, // 'parent_menu' => 'dwpack_menu' ) );