PluginProbe
Premmerce Permalink Manager for WooCommerce / 2.3.13
Premmerce Permalink Manager for WooCommerce v2.3.13
trunk 1.0 1.0.1 1.1 1.1.1 1.1.2 1.1.3 1.1.4 2.0 2.0.1 2.1 2.1.1 2.1.11 2.1.12 2.1.13 2.1.14 2.1.2 2.1.3 2.1.4 2.1.5 2.1.7 2.1.8 2.1.9 2.2.0 2.3.0 All 38 releases
woo-permalink-manager / woo-permalink-manager.php

woo-permalink-manager.php in Premmerce Permalink Manager for WooCommerce 2.3.13, at woo-permalink-manager.php

33 lines 709 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Premmerce Permalink Manager Slug fix
4 *
5 * This file is intended to fix a wrong plugin slug from an older version.
6 *
7 * @since 2.3.6
8 */
9
10 add_action(
11 'plugins_loaded',
12 function() {
13 if ( ! function_exists( 'deactivate_plugins' ) ) {
14 include ABSPATH . 'wp-admin/includes/plugin.php';
15 }
16
17 // this file
18 $deactivate = plugin_basename( __FILE__ );
19
20 // correct file
21 $activate = dirname( $deactivate ) . '/premmerce-url-manager.php';
22
23 $network_wide = is_plugin_active_for_network( $deactivate );
24
25 // don't trigger (de)activation hooks
26 $silent = true;
27
28 deactivate_plugins( $deactivate, $silent, $network_wide );
29 activate_plugins( $activate, '', $network_wide, $silent );
30
31 }
32 );
33