Changeset 25482
- Timestamp:
- 09/18/2013 07:35:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r25477 r25482 542 542 if ( ! $silent ) { 543 543 /** 544 * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false 544 * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false. 545 545 * 546 546 * @since 2.9.0 547 547 * 548 * @param string $plugin Basename of the plugin path from {@see activate_plugin()}. 549 * @param bool $network_wide Argument from {@see activate_plugin()}. 548 * @param string $plugin Plugin path to main plugin file with plugin data. 549 * @param bool $network_wide Whether to enable the plugin for all sites in the network 550 * or just the current site. Multisite only. Default is false. 550 551 */ 551 552 do_action( 'activate_plugin', $plugin, $network_wide ); 552 553 553 554 /** 554 * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false 555 * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false. 555 556 * 556 557 * The action concatenates the 'activate_' prefix with the $plugin value passed to 557 * activate_plugin() to create a dynamically 558 * activate_plugin() to create a dynamically-named action. 558 559 * 559 560 * @since 2.0.0 560 561 * 561 * @param bool $network_wide Argument from {@see activate_plugin()}. 562 * @param bool $network_wide Whether to enable the plugin for all sites in the network 563 * or just the current site. Multisite only. Default is false. 562 564 */ 563 565 do_action( 'activate_' . $plugin, $network_wide ); … … 575 577 if ( ! $silent ) { 576 578 /** 577 * Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false 579 * Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false. 578 580 * 579 581 * @since 2.9.0 580 582 * 581 * @param string $plugin Basename of the plugin path from {@see activate_plugin()}. 582 * @param bool $network_wide Argument from {@see activate_plugin()}. 583 * @param string $plugin Plugin path to main plugin file with plugin data. 584 * @param bool $network_wide Whether to enable the plugin for all sites in the network 585 * or just the current site. Multisite only. Default is false. 583 586 */ 584 587 do_action( 'activated_plugin', $plugin, $network_wide ); … … 628 631 * @since 2.9.0 629 632 * 630 * @param string $plugin Basename of the plugin path from {@see activate_plugin()}. 631 * @param bool $network_deactivating True if $network_wide passed in {@see deactivate_plugin()} is true and the plugin is active for the network. 633 * @param string $plugin Plugin path to main plugin file with plugin data. 634 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 635 * or just the current site. Multisite only. Default is false. 632 636 */ 633 637 do_action( 'deactivate_plugin', $plugin, $network_deactivating ); … … 656 660 * 657 661 * The action concatenates the 'deactivate_' prefix with the plugin's basename 658 * to create a dynamically 662 * to create a dynamically-named action. 659 663 * 660 664 * @since 2.0.0 661 665 * 662 * @param bool $network_deactivating True if $network_wide passed in {@see deactivate_plugin()} is true and the plugin is active for the network. 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. 663 668 */ 664 669 do_action( 'deactivate_' . $plugin, $network_deactivating ); … … 670 675 * @since 2.9.0 671 676 * 672 * @param string $plugin Basename of the plugin path from {@see activate_plugin()}. 673 * @param bool $network_deactivating True if $network_wide passed in {@see deactivate_plugin()} is true and the plugin is active for the network. 677 * @param string $plugin Plugin path to main plugin file with plugin data. 678 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 679 * or just the current site. Multisite only. Default is false. 674 680 */ 675 681 do_action( 'deactivated_plugin', $plugin, $network_deactivating ); … … 928 934 * 929 935 * The action concatenates the 'uninstall_' prefix with the basename of the 930 * plugin passed to {@see uninstall_plugin()} to create a dynamically 936 * plugin passed to {@see uninstall_plugin()} to create a dynamically-named action. 931 937 * 932 938 * @since 2.7.0
Note: See TracChangeset
for help on using the changeset viewer.