| @@ -45,9 +45,11 @@ | ||
| 45 | 45 | */ |
| 46 | 46 | protected $max_items = 200; |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * Constructor | |
| 49 | + * The constructor | |
| 50 | + * | |
| 51 | + * @param ContentBlocksBuilder $the_plugin_instance | |
| 50 | 52 | */ |
| 51 | 53 | public function __construct( $the_plugin_instance ) { |
| 52 | 54 | parent::__construct( $the_plugin_instance ); |
| 53 | 55 | |
| @@ -88,9 +90,9 @@ | ||
| 88 | 90 | // Handle save post. |
| 89 | 91 | add_action( 'save_post_' . $this->post_type, [ $this, 'save_post' ], 10, 2 ); |
| 90 | 92 | |
| 91 | 93 | // Clear the transient cache on upgraded. |
| 92 | - add_action( 'cbb_version_upgraded', [ $this, 'clear_transient_cache' ] ); | |
| 94 | + add_action( 'cbb/version_upgraded', [ $this, 'clear_transient_cache' ] ); | |
| 93 | 95 | |
| 94 | 96 | // Force to remove custom fields. |
| 95 | 97 | add_action( 'add_meta_boxes', [ $this, 'remove_meta_boxes' ] ); |
| 96 | 98 | } |