⚠️ Our website is currently under maintenance. We're working on exciting updates and expect the new website to be ready by October 10. You can still purchase. However, some website features may temporarily be unavailable or not work as expected. Thank you for your patience!

WP 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

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

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:

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.