| | 653 | |
| | 654 | /** |
| | 655 | * Fires as a specific plugin is being deactivated. |
| | 656 | * |
| | 657 | * This hook is the "deactivation" hook used internally by |
| | 658 | * register_deactivation_hook(). The dynamic portion of the |
| | 659 | * hook name, $plugin, refers to the plugin basename. |
| | 660 | * |
| | 661 | * If a plugin is silently deactivated (such as during an update), |
| | 662 | * this hook does not fire. |
| | 663 | * |
| | 664 | * @since 2.0.0 |
| | 665 | * |
| | 666 | * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network |
| | 667 | * or just the current site. Multisite only. Default is false. |
| | 668 | */ |
| | 669 | do_action( 'deactivate_' . $plugin, $network_deactivating ); |
| 672 | | if ( ! $silent ) { |
| 673 | | /** |
| 674 | | * Fires as a specific plugin is being deactivated. |
| 675 | | * |
| 676 | | * This hook is the "deactivation" hook used internally by |
| 677 | | * register_deactivation_hook(). The dynamic portion of the |
| 678 | | * hook name, $plugin, refers to the plugin basename. |
| 679 | | * |
| 680 | | * If a plugin is silently deactivated (such as during an update), |
| 681 | | * this hook does not fire. |
| 682 | | * |
| 683 | | * @since 2.0.0 |
| 684 | | * |
| 685 | | * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network |
| 686 | | * or just the current site. Multisite only. Default is false. |
| 687 | | */ |
| 688 | | do_action( 'deactivate_' . $plugin, $network_deactivating ); |
| | 689 | } |