' . esc_html__( 'Agentrue requires WooCommerce to be installed and active.', 'agentrue' ) . '

'; } ); return; } Agentrue_Gate::init(); Agentrue_Feed::init(); Agentrue_Analytics::init(); if ( is_admin() ) { Agentrue_Admin::init(); } } ); register_activation_hook( __FILE__, function () { Agentrue_Feed::add_rewrites(); flush_rewrite_rules(); } ); register_deactivation_hook( __FILE__, function () { flush_rewrite_rules(); } );