' . esc_html( $label ) . '' ); return $links; } // Include the ads.txt slot so the function exists. require_once plugin_dir_path( __FILE__ ) . 'views/slots/ads-txt.php'; register_activation_hook( __FILE__, 'adxbyms_activate' ); /** * Activate the plugin * * @return void */ function adxbyms_activate() { adxbyms_register_ads_txt_rewrite(); flush_rewrite_rules(); } register_deactivation_hook( __FILE__, 'adxbyms_deactivate' ); /** * Deactivate the plugin * * @return void */ function adxbyms_deactivate() { flush_rewrite_rules(); }