do_action( "wpcd_server_{$this->get_app_name()}_{$name}_command_done", $id )
Example Hook #
add_action( "wpcd_server_wordpress-app_prepare_server_command_done", 'my_function', 10, 1 ); public function my_function( $id ){ //your code here }
Discussion #
This hook is fired after we have installed our software stack on the server and the server provisioning is complete.
At this point the server is stable and you should be able to connect to it.
- $id is the post_id of the server or app custom post type record.
This hook might fire more than once so make sure you guard against that possibility in your code.
Reference #
Located in:
- Function: is_command_done
- File: /includes/core/apps/class-wpcd-app.php
Availability #
This hook is only available in DVI versions 4.2.5 or later.
More Topics In Dev Notes #
- Filter Hook: wpcd_script_file_contents
- Filter Hook: wpcd_wpapp_show_install_wp_button
- Filter Hook: wpcd_wpapp_show_install_wp_link
- Filter Hook: wpcd_settings_help_tab_text
- Filter Hook: wpcd_settings_welcome_text_initial
- Filter Hook: wpcd_settings_welcome_text
- Filter Hook: wpcd_settings_deploy_first_wp_site_text
- Custom Post Types Used By DVI
- Action Hook: wpcd_server_wordpress-app_server_created
- Action Hook: wpcd_command_wordpress-app_completed
- Action Hook: wpcd_command_wordpress-app_prepare_server_completed
- Filter Hook: wpcd_wordpress-app_initial_server_attributes
- Filter Hook: wpcd_wordpress-app_create_popup
- Filter Hook: wpcd_wordpress-app_install_app_popup
- Filter Hook: wpcd_wordpress-app_initial_server_attributes_wc
- Filter Hook: wpcd_wordpress-app_install_wp_app_parms
- Action Hook: wpcd_command_wordpress-app_completed_after_cleanup
- Site Update Plans: Pending Task Sequence Technical Note