Since the ‘timer’ has to execute on the client side, then you will need to find some JavaScript that will ‘run’ the timer and pop up the box.
You can’t do this with PHP code (WP filters, hooks, themes, plugins), because PHP runs on the server, not the browser.
Browser side stuff has to be done with JavaScript…and the client (visitor’s browser) needs to have JavaScript enabled. (Although you could create a plugin that runs the JavaScript code on all pages…)
But the solution is some client-side JavaScript code.
Related Posts:
- Log in from one wordpress website to another wordpress website
- best way to make a WordPresss multisite that is secure but at the same time supporting my plugin development efforts
- how to add security questions on wp-registration page and validate it
- How to store username and password to API in wordpress option DB?
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- How to properly validate data from $_GET or $_REQUEST using WordPress functions?
- Nonces can be reused multiple times? Bug / Security issue?
- Can someone explain what wp_session_tokens are, and what are they used for?
- WordPress and PHP Sessions – Security and Performance
- How to check username/password without signing in the user
- What is the difference between esc_html and wp_filter_nohtml_kses?
- custom XMLRPC method plus authentication of user & WooCommerce order
- How to check WordPress website username and password is correct
- Nonce in settings API with tabbed navigation
- Build path for a custom portfolio plugin
- WordPress REST API call generates nonce twice on every call
- Escaping built-in WP function return strings
- What is the difference between strip_tags and wp_filter_nohtml_kses?
- WordPress custom authentication implementation
- WP Cron doesn’t save or in post body
- Displaying search results in the widget itself?
- Security error WP 4.0 + WP phpBB Bridge [closed]
- Post from front-end with post types, categories and taxonomies
- Need specific kind of “Poll Voting” for WordPress [closed]
- WordPress restrict plugin file direct access
- Plugin development: is adding empty index.php files necessary?
- Confusion on WP Nonce usage in my Plugin
- How to extend expiry time of jwt wordpress token?
- Coding a plugin on WordPress; when should I sanitize? [duplicate]
- Configuring WordPress Auth Cookie Expiration
- Correct way check nonce (security) using old Options API
- Why do I need to check if wp_nonce_field() exists before using it
- How to get the ID of the currently logged in user?
- Is there any way to check for user login and send him to login?
- WordPress security issue to output data from user input from theme option form
- Best plugin for most viewed post [closed]
- What parameter should I pass to wp_enqueue_style to depend on the themes stylesheet?
- Make WordPress cache permanent for some pages until edited
- Verify if user is wordpress logged in from another app since wordpress 4.0
- Secure Pages Best Practice
- Securing/Escaping Output of file content – reading via fread() in PHP
- Video Security just like facebook [closed]
- Is disabling test_form in wp_handle_upload a security concern?
- How to connect my wordpress plugin to a remote database securely?
- wp_nonce_field displaying twice
- Is it necessary to do validation again when retrieving data from database?
- How to set a cookie for logged in users to md5($user->ID . “my_secret”)?
- Checking a WordPress for OWASP top 10 vulnerabilities [closed]
- How do I have now a duplicated user entry if this is not allowed (and I cannot replicate it)?
- add_submenu_page hooked function must explicitly check user capabilities – why?
- Are there any security risks when submitting data-attribute data through AJAX?
- Why would you use esc_attr() on internal functions?
- Is it possible to use WP-CLI in a plugin (or theme)?
- Using HTML links within translatable string
- Best way to distribute templates and code accross multiple wordpress sites?
- How can I save a password securely as a settings field
- Redirect returning users to a certain page?
- Development plugin to view and manage scheduled wordpress cron jobs?
- Using password protection to load different page elements?
- HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used
- How to store sensitive user data (passwords)
- How do I make secure API calls from my WordPress plugin?
- esc_attr() on hard coded string
- Experts opinions needed: How (in)secure is this approach?
- Pluigin Migration – I need to move a single plugin to a different website
- What is more secure checking capabilities of user or checking role of user in WordPress plugin development
- Data Validation, dynamically generated fields (select for example)
- Practical Solutions to HTML5 Video on WordPress
- How to change url’s in WordPress when changing domain [duplicate]
- How to Implement SAM Broadcaster with WordPress? [closed]
- Rest Api WordPress
- esc_url, esc_url_raw or sanitize_url?
- List categories with descriptions via plugin
- How to determine which capability to use?
- Plugin Creation: Overriding upload_max_size and post_max_size
- Will a plugin able to know is_user_logged_in?
- Plugin could not be activated because it triggered a fatal error?
- How to exclude “uncategorized” from custom categories widget?
- Problems with wierd characters and my plugin
- Get cat parameter from admin-ajax
- how to add custom fields into new & update post page?
- Widget instance options not showing correctly
- Questions about meta box: nonce and parameters available
- Remove Products From Category
- Update product prices from remote file
- How to add some basic inline CSS using existing plugin or theme?
- Serial Number from custom table not appear in woocommerce_email_before_order_table action
- Font size of HTML content
- WordPress: redirecting to the form page after form submission to admin-post.php
- Foreign wp_users ID in custom plugin DB table?
- Displaying custom content from a plugin within the active theme
- How to write a shopping queue line plugin with a queue button?
- Why does website stretch and white space on load? [duplicate]
- Custom Settings Plugin Save foreach checkboxes
- Auto hyper link text matching slugs/pages
- Modify custom block plugin without losing content
- Metabox is not displaying
- check_admin_referer()
- Downloading File via headers doesnt work
- get the permalink error