register();
( new Emails() )->register();
( new Privacy() )->register();
( new Refund_Watcher() )->register();
if ( is_admin() ) {
( new Admin\Admin_Page() )->register();
( new Admin\Product_Fields() )->register();
( new Admin\Order_Box() )->register();
add_filter( 'plugin_action_links_' . plugin_basename( RETURNWELL_FILE ), array( $this, 'action_links' ) );
}
/**
* Returnwell has booted. Returnwell Pro hooks in here.
*/
do_action( 'returnwell_loaded' );
}
/**
* Links on the Plugins screen.
*
* @param string[] $links Links.
* @return string[]
*/
public function action_links( $links ) {
array_unshift(
$links,
'' . esc_html__( 'Settings', 'returnwell' ) . '',
'' . esc_html__( 'Returns', 'returnwell' ) . ''
);
return $links;
}
}