apply_filters( "wpcd_{$this->get_app_name()}_initial_server_attributes", $attributes, $args );
add_filter( "wpcd_wordpress-app_initial_server_attributes", 'my_function', 10, 2 ); public function my_function( $attributes, $args ) { //your code here }
This hook is fired just before data is passed off to the server creation routine. It’s a great place to take any additional fields you’ve added to the server creation popup screen and insert it into the array of server information that will be stored in the server custom post type record.
This filter is for servers created in wp-admin only. Servers created using WooCommerce on the front-end have a different filter with much different parameters.
Located in:
This hook is only available in WPCD versions 4.2.5 or later.