Skip to content

Commit 967939b

Browse files
committed
refactor for hcpp_render_body, hcpp_render_panel
1 parent 2df07e0 commit 967939b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mailcatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class MailCatcher {
1717
public function __construct() {
1818
global $hcpp;
1919
$hcpp->mailcatcher = $this;
20-
$hcpp->add_action( 'hcpp_render_page', [ $this, 'hcpp_render_page' ] );
20+
$hcpp->add_action( 'hcpp_render_body', [ $this, 'hcpp_render_body' ] );
2121
$hcpp->add_action( 'nodeapp_startup_services', [ $this, 'nodeapp_startup_services' ] );
2222
$hcpp->add_action( 'priv_unsuspend_domain', [ $this, 'priv_unsuspend_domain' ] );
2323
$hcpp->add_action( 'hcpp_plugin_installed', [ $this, 'hcpp_plugin_installed' ] );
@@ -99,7 +99,7 @@ public function hcpp_new_domain_ready( $args ) {
9999
}
100100

101101
// Add MailCatcher icon next to our web domain list and button to domain edit pages.
102-
public function hcpp_render_page( $args ) {
102+
public function hcpp_render_body( $args ) {
103103
if ( $args['page'] == 'list_web' ) {
104104
$args = $this->render_list_web( $args );
105105
}

0 commit comments

Comments
 (0)