| | 639 | |
| | 640 | /** |
| | 641 | * Fires for each plugin being deactivated in deactivate_plugins(), after deactivation |
| | 642 | * and when the $silent parameter is false. |
| | 643 | * |
| | 644 | * The action concatenates the 'deactivate_' prefix with the plugin's basename |
| | 645 | * to create a dynamically-named action. |
| | 646 | * |
| | 647 | * @since 2.0.0 |
| | 648 | * |
| | 649 | * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network |
| | 650 | * or just the current site. Multisite only. Default is false. |
| | 651 | */ |
| | 652 | do_action( 'deactivate_' . $plugin, $network_deactivating ); |
| 657 | | |
| 658 | | if ( ! $silent ) { |
| 659 | | /** |
| 660 | | * Fires for each plugin being deactivated in deactivate_plugins(), after deactivation |
| 661 | | * and when the $silent parameter is false. |
| 662 | | * |
| 663 | | * The action concatenates the 'deactivate_' prefix with the plugin's basename |
| 664 | | * to create a dynamically-named action. |
| 665 | | * |
| 666 | | * @since 2.0.0 |
| 667 | | * |
| 668 | | * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network |
| 669 | | * or just the current site. Multisite only. Default is false. |
| 670 | | */ |
| 671 | | do_action( 'deactivate_' . $plugin, $network_deactivating ); |
| 672 | | |
| 673 | | /** |
| 674 | | * Fires for each plugin being deactivated in deactivate_plugins(), after deactivation |
| 675 | | * and when the $silent parameter is false. |
| 676 | | * |
| 677 | | * @since 2.9.0 |
| 678 | | * |
| 679 | | * @param string $plugin Plugin path to main plugin file with plugin data. |
| 680 | | * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network |
| 681 | | * or just the current site. Multisite only. Default is false. |
| 682 | | */ |
| 683 | | do_action( 'deactivated_plugin', $plugin, $network_deactivating ); |
| 684 | | } |