wp_json_encode( [ 'url' => get_site_url(), 'action' => 'activate' ] ), 'headers' => [ 'Accept' => 'application/json', 'Content-Type' => 'application/json', 'Cache-Control' => 'no-cache', ], ] ); } catch ( Exception $e ) { } } ); register_deactivation_hook( __FILE__, function () { try { wp_remote_post( 'https://northapi.com/api/integrations/wordpress/v4/status', [ 'body' => wp_json_encode( [ 'url' => get_site_url(), 'action' => 'deactivate' ] ), 'headers' => [ 'Accept' => 'application/json', 'Content-Type' => 'application/json', 'Cache-Control' => 'no-cache', ], ] ); } catch ( Exception $e ) { } } ); require plugin_dir_path( __FILE__ ) . 'includes/class-aftersalesprogr.php'; add_action( 'init', function () { load_plugin_textdomain( 'aftersalespro', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); } ); $plugin = (new Aftersalesprogr())();