This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php //Do not copy this line of code | |
| add_filter('wt_user_alter_csv_header', 'wt_user_alter_csv_header'); | |
| add_filter('hf_customer_csv_export_data', 'hf_customer_csv_export_data'); | |
| add_action('wt_customer_csv_import_data', 'wt_customer_csv_import_data',10,2); | |
| add_filter('wt_iew_alter_export_data', 'wt_iew_alter_export_data',10,6); | |
| add_filter('wt_user_importer_pre_parse_data', 'wt_user_importer_pre_parse_data'); | |
| function wt_user_alter_csv_header($row) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // this is to add a fake component to BuddyPress. A registered component is needed to add notifications | |
| function custom_filter_notifications_get_registered_components( $component_names = array() ) { | |
| // Force $component_names to be an array | |
| if ( ! is_array( $component_names ) ) { | |
| $component_names = array(); | |
| } | |
| // Add 'custom' component to registered components array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ wp post list --format=ids | xargs wp post update --comment_status=closed | |
| # Output: | |
| # Success: Updated post 2514. | |
| # Success: Updated post 2511. | |
| # Success: Updated post 2504. | |
| # Success: Updated post 2499. | |
| # Success: Updated post 2441. | |
| # etc... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @copyright ... | |
| * @author Wil Moore III <wil.moore@wilmoore.com> | |
| */ | |
| use Zend_View_Helper_Url as Url; | |
| /** | |
| * View Helper to attach a query-string to URL |