This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This unit uses record types in conjunction with record "management operators" to implement | |
// (pretty basic) smart pointers specifically for class types. | |
unit ManagedObject; | |
// ↓↓↓ this just enables Free Pascal's Delphi-syntax compatibility mode | |
{$mode Delphi}{$H+} | |
{$Assertions On} | |
interface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Turn off WooCommerce Marketplace suggestions | |
*/ | |
add_filter( 'woocommerce_allow_marketplace_suggestions', '__return_false' ); | |
/** | |
* Turn off WooCommerce Feature Plugin notice | |
*/ | |
add_filter( 'woocommerce_show_admin_notice', '__return_false', 'wc_admin_feature_plugin_notice' ); |