| @@ -729,8 +729,22 @@ | ||
| 729 | 729 | ]; |
| 730 | 730 | } |
| 731 | 731 | |
| 732 | 732 | /** |
| 733 | + * Remove existing stack from the stacks cache | |
| 734 | + * | |
| 735 | + * Removes the stack of a passed instance from the Controls Manager's stacks cache. | |
| 736 | + * | |
| 737 | + * @param Controls_Stack $controls_stack | |
| 738 | + * @return void | |
| 739 | + */ | |
| 740 | + public function delete_stack( Controls_Stack $controls_stack ) { | |
| 741 | + $stack_id = $controls_stack->get_unique_name(); | |
| 742 | + | |
| 743 | + unset( $this->stacks[ $stack_id ] ); | |
| 744 | + } | |
| 745 | + | |
| 746 | + /** | |
| 733 | 747 | * Add control to stack. |
| 734 | 748 | * |
| 735 | 749 | * This method adds a new control to the stack. |
| 736 | 750 | * |