WPCloudDeploy Documentation

Filter Hook: wpcd_wordpress-app_create_popup

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

Example Hook

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


Use this hook to replace the file used to collect data when creating a new server in wp-admin.  The normal popup file is includes/core/apps/wordpress-app/templates/create-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.


Located in:

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


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