WordPress Timed Based Code Switcher Plugin

Automate Content Rotation with Precision Timing
Dynamically switch between content, ads, or promotions after set durations – perfect for time-sensitive campaigns, A/B testing, and seasonal announcements.

How It Works:
1 Create a timed content set in WordPress admin
2 Set your duration and two content versions
3 Paste the shortcode anywhere
4 Watch content auto-switch for visitors

Key Features:
* Smart Time-Based Switching
* Set exact durations (seconds/minutes/days)
* First-view vs. return-visitor control
* Browser cookie-based tracking

Price:  $45  $29

Perfect For:Marketers, e-commerce stores, bloggers, and agencies who need automated content rotation.

Need Customization?
Contact me for custom development to tailor the plugin to your workflow!

Why Choose This Plugin?
– No Coding Needed – Intuitive WordPress interface
– Lightweight – No performance overhead
– GDPR Compliant – Cookie-based without personal data

Universal Compatibility
– Works with all page builders (Elementor, Divi, WPBakery)

– Shortcode [time_based_switch id=”promo1″] or PHP <?php echo do_shortcode(‘[time_based_switch]’); ?>
– Supports HTML, JavaScript, ads, and other shortcodes

Benefits
* Priority Support
* No Subscription Fee

* Future Updates (feature requests considered)
* specific customisation (contact for pricing*)
* White-label Option (contact for pricing*)

Professional Use Cases
* E-commerce: Rotate limited-time offers
* Marketing: Schedule announcement bars
* A/B Testing: Alternate content variants
* Watch intro video
* Courses: Reveal lesson 2 only after 48h

Screenshot

Tutorials

Playlist

6 Videos
				
					UPDATE LOG:

Updated: Time Based Code Switcher (version 1.1) by User ID: RIC at 2025-04-15 23:20:48
				
			
				
					Technical Details:

- Requires: WordPress 5.6+
- PHP 7.4+
				
			

Trusted by Professionals Worldwide

Join 1,200+ marketers, developers, and business owners who rely on Time Based Code Switcher to automate their content strategies.
Here’s what they’re saying:

Sarah K
Sarah K
Online Store Owner
"This plugin boosted our Black Friday sales by 37%! Automatically switching from 'Coming Soon' to 'Live Now' created perfect urgency. Worth every penny."
Raj P.
Raj P.
WooCommerce Developer
"I use this for 12+ client stores to rotate flash sales. The cookie-based timing ensures no customer misses deals. Super reliable."
Mikael T.
Mikael T.
Dropshipping Entrepreneur
"Solved my timezone problem – now promotions go live at 9AM in each customer's local time. Brilliant!"
Stratagem Digital
Stratagem Digital
Agency Team
"Our #1 tool for client A/B tests. Switched from expensive SaaS to this plugin – saved $1,200/year per client."
Lena R.
Lena R.
PPC Specialist
"Rotate ad variations hourly and track conversions easily. Finally, a WordPress-native solution for ad testing!"
OmniBrand Solutions
OmniBrand Solutions
Agency Owner
"White-labeled this for 3 clients as their 'proprietary engagement system'. They love the 'fancy tech' (it's just your plugin!)."
Eduardo M.
Eduardo M.
Online Course Creator
"Sequencing lesson unlocks automatically increased course completion rates by 22%. Students love the anticipation."
Theresa L.
Theresa L.
Membership Site Owner
"Shows different upsell banners based on membership duration. Converted 15% more free users to paid!"
PodcastPro
PodcastPro
Media Company
"Our 'Episode Coming Soon' → 'Listen Now' transitions work flawlessly. Listener engagement up 40%."
Antonio's Bistro
Antonio's Bistro
Restaurant Owner
"Lunch menu switches to dinner automatically at 5PM. No more angry customers seeing wrong menus!"
Haven Realty
Haven Realty
Real Estate Agent
"New listings show as 'Fresh' for 72 hours, then switch to detailed specs. Gets 3x more inquiries."
Urban Fitness Gym
Urban Fitness Gym
Gym Owner
"Rotates class schedules and promo banners. Members actually notice announcements now!"
DevTeam Nk.
DevTeam Nk.
WordPress Developers
"Saved 50+ hours building custom solutions for clients. This handles all timed content needs out of the box."
Marcus T.
Marcus T.
Freelancer
"My clients think I’m a coding wizard for setting up automated content. Little do they know!"
DataDriven SEO
DataDriven SEO
Marketing Firm
"Using this to rotate schema markup for events increased our clients' rich snippet visibility by 70%."

Frequently Asked Questions.

Time Based Code Switcher is a WordPress plugin that allows you to automatically alternate between two different code snippets after a specified time period.

The plugin was created by Ric and is maintained by Ricwork.net.

The plugin has been tested up to WordPress 6.7.

Yes, the plugin is released under the GPLv2+ license.

  1. Download the plugin from Ricwork.net

  2. Go to your WordPress admin panel → Plugins → Add New → Upload Plugin.

  3. Upload the ZIP file and activate the plugin.

You need ‘manage_options’ capability (typically Administrator role) to access and configure the plugin settings.

After activation, you’ll find the plugin under the WordPress admin menu as “Code Switcher” with a clock icon.

  1. Go to the plugin settings page

  2. Fill in the form with:
    -Set name
    -First code snippet
    -Second code snippet
    -Timer duration (in seconds)

  3. Click “Add New Code Set”

Each code set generates a shortcode automatically. You can use this shortcode in your posts, pages, or widgets.

The plugin uses the format: [time_based_code id="your_set_id"]

Yes, you can add a class parameter to the shortcode: [time_based_code id="your_set_id" class="your-class"]

  1. Go to the plugin settings page

  2. Find the code set you want to delete

  3. Click the “Delete” link next to it

  4. Confirm the action when prompted

The plugin defaults to 3600 seconds (1 hour) if no duration is specified. 

The plugin uses wp_kses_post() to sanitize HTML content, allowing most standard HTML tags while preventing potentially malicious code.

Yes, the plugin is translation-ready and includes a text domain ‘time-based-code-switcher’. Translation files should be placed in the /languages/ directory.

All settings are stored in the WordPress options table under the key ‘multi_code_switcher_options’.

  1. Check that the shortcode is correctly entered

  2. Verify that the code set ID exists in your settings

  3. Make sure your user role has permission to view the content

  1. Verify your timer duration is set correctly (in seconds)

  2. Check for JavaScript errors on your page that might prevent the timer from working

  3. Ensure you’re using the latest version of the plugin

This typically means the nonce verification failed. Try refreshing the page and attempting the action again.

No, the plugin is designed for HTML, CSS, JavaScript, and shortcodes only. For PHP functionality, you would need to create a custom solution. Or contact with me. [email protected]

You can extend the plugin by:

  1. Creating custom hooks (if available in future versions)

  2. Modifying the plugin code directly (remember to backup first)

  3. Creating a companion plugin that enhances functionality

Currently, the plugin doesn’t include a preview feature. You would need to publish the content to see the switching behavior.