Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog/smtnc-1933-remove-stellar-sale-class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
significance: minor
Comment thread
dave-green-uk marked this conversation as resolved.
Outdated
type: deprecated
entry: 'Removed class: `TEC\Common\Admin\Conditional_Content\Stellar_Sale`'
Comment thread
dave-green-uk marked this conversation as resolved.
Outdated
timestamp: 2026-08-04T16:08:45.000Z
4 changes: 4 additions & 0 deletions changelog/smtnc-1933-remove-stellar-sale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
significance: minor
type: tweak
entry: Removed the Stellar Sale promotional banner from the admin.
Comment thread
dave-green-uk marked this conversation as resolved.
Outdated
timestamp: 2026-08-04T16:08:44.000Z
6 changes: 3 additions & 3 deletions docs/Admin/conditional-content/conditional-logic.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ class Black_Friday extends Promotional_Content_Abstract {
Use `Has_Targeted_Creative_Upsell` when you want to show specific ads based on context and missing plugins:

```php
class Stellar_Sale extends Promotional_Content_Abstract {
class Summer_Sale extends Promotional_Content_Abstract {
use Has_Datetime_Conditions;
use Is_Dismissible;
use Requires_Capability;
use Has_Targeted_Creative_Upsell;

protected string $slug = 'stellar-sale';
protected string $slug = 'summer-sale';

protected function get_suite_creative_map(): array {
return [
Expand Down Expand Up @@ -501,4 +501,4 @@ class My_Promo extends Promotional_Content_Abstract {
For questions or issues, refer to:

- [Tests](../../../../tests/wpunit/Common/Admin/Conditional_Content/) for usage examples
- Existing implementations: `Black_Friday.php`, `Stellar_Sale.php`
- Existing implementations: `Black_Friday.php`
6 changes: 1 addition & 5 deletions src/Common/Admin/Conditional_Content/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Conditional Content Controller.
*
* @since 6.3.0
* @since TBD Removed the Stellar Sale promotional content.
*/
class Controller extends Provider_Contract {

Expand All @@ -34,7 +35,6 @@ public function register() {
}

$this->container->singleton( Black_Friday::class, Black_Friday::class, [ 'hook' ] );
$this->container->singleton( Stellar_Sale::class, Stellar_Sale::class, [ 'hook' ] );

$this->hooks();
}
Expand All @@ -61,7 +61,6 @@ protected function hooks(): void {
public function plugins_loaded(): void {
// Those need to be initialized here in order for their hooks to be registered.
tribe( Black_Friday::class );
tribe( Stellar_Sale::class );

$plugin = Common::instance();

Expand Down Expand Up @@ -89,7 +88,6 @@ public function render_header_notice( $page = null ): void {
return;
}

tribe( Stellar_Sale::class )->render_header_notice();
tribe( Black_Friday::class )->render_header_notice();
}

Expand Down Expand Up @@ -141,7 +139,6 @@ public function add_sidebar_sections( $sections, $sidebar ): array {
*/
protected function get_promotional_classes(): array {
return [
Stellar_Sale::class,
Black_Friday::class,
];
}
Expand All @@ -154,7 +151,6 @@ protected function get_promotional_classes(): array {
* @return void
*/
public function render_help_hub_sidebar(): void {
tribe( Stellar_Sale::class )->render_sidebar_content();
tribe( Black_Friday::class )->render_sidebar_content();
}
}
299 changes: 0 additions & 299 deletions src/Common/Admin/Conditional_Content/Stellar_Sale.php

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading