WPCloudDeploy Documentation

Filter Hook: wpcd_wordpress-app_install_app_popup

apply_filters( "wpcd_{$this->get_app_name()}_install_app_popup", $file_name )

Example Hook

add_filter( "wpcd_wordpress-app_install_app_popup", 'my_function', 10, 1 );
public function my_function( $file_name ) { 
     //your code here 
}

Discussion

Use this hook to replace the file used to collect data when creating a new WordPress site in wp-admin.  The normal popup file is includes/core/apps/wordpress-app/templates/install-app-popup.php.  You can create your own version of this file and put it anywhere and then tell WPCD where it’s located using this filter.  Keep in mind that if you do this, you’ll need to track changes to the original file and apply them to your custom file.

  • $file_name is the full path to the current popup.  Return a different path and filename to use your custom popup.

Pro tip:  Look inside the current popup file to get a list of action hooks.  In many cases you might be able to add additional fields to the screen without having to make a custom copy of the file.

Reference

Located in:

  • Function: ajax_server
  • File: /includes/core/apps/wordpress-app/class-wordpress-app.php

Availability

This hook is only available in WPCD versions 4.2.5 or later.

Share: