You can use JavaScript to trigger events upon page load. The example below uses jQuery.
$(document).ready(function () {
// Select a link by ID
$('#specific-link').trigger('click');
// Select the first link with a certain class
$('a.thickbox').first().trigger('click');
});
Related Posts:
- Does WP delete deprecated plugin/theme files on plugin/theme upgrade?
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Add menu page issues (permissions & position)
- Preventing My Plugin From Being Used For Free
- Remove_action from plugin with a Class
- How to delete all trashed item in one-go
- What is wordpress way to access a plugin’s classes/models to load custom post type data?
- Change wp-login to custom URL login page
- Shortcode not getting replaced
- How do I override plugin templates and stylesheets?
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- Why can’t I call a (member) function from within a foreach?
- Plugin that will output submitted form data for user? [closed]
- WordPress plugin to auto execute php script on a specific time?
- WordPress Related Plugin – only show when related content
- Don’t publish/update a post when a plugin finds errors in custom fields
- How to import WordPress site to new WordPress site?
- disabling ftp on wordpress
- Why does this code snippet create a critical error on my site? [closed]
- How to manipulate the content within wp_head
- Admin page button create new
- how to add custom info on author page? plugin, child theme?
- How Do I Uninstall a Current WordPress Theme and Install a Fresh Theme
- Must use Plugin not updating HTML code in head
- Restore with Duplicator, URL is concatenated twice
- Installing plug ins on a wordpress hosted site
- How to add HTML5 required on wp_editor
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- How do I link an image in my plugin so it displays on WordPress?
- Using conditional staements to load plugins
- WordPress “Add new tag” button is not working
- Cannot access empty property error in Advanced Access Manager
- How to get the get the select values created by ACF plugin in wordpress
- Nonce failing with second argument
- Calendar for irregular recurring events [closed]
- Using plugin_dir_path() with WordPress on MAMP
- I’m looking for a plugin to execute a specific task a certain time
- jQuery gallery plugin to interface with Picasa
- Looking for a photo gallery plugin [closed]
- Get Page URI for QR Code PHP [closed]
- How do I allow users to supply a photo/image to be used instead of the grey/white silhouette?
- In a WPMU that uses several different domains, how to enable users to register subdomains of any domain from the main site?
- Woo-commerce Update price as a Bulk from My offline software export
- co-authors plugin – inline listing
- require_once not working in plugin wordpress
- Update automatically a form inside a function of a plugin
- How to prepare (compress/zip) a plugin to enable updating instead of adding new instance?
- WordPress website will not show menu on a Mobile Device
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- Change language in SiteOrigin Widgets
- WordPress Standard Fix Errors
- How to dynamically add template in Innerblock?
- any word search WordPress
- Warning: call_user_func_array() problem can anyone help with it?
- Display value of the GET parameter in a new URL page
- Include my files in a plugin? [duplicate]
- Some Widgets in the Right Side Bar and the whole Footer section is not working in a WordPress Site
- Swap picture in slider plugin
- Hello everyone! Is there a function to call the wordpress loader?
- How to call a function from inside class to outside class
- how can I edit the HTML of yith ajax product filter
- Contact Form 7 – Make a selection unavailable after a number of bookings
- Securing langugae folder
- Use modulo condition in ACF repeater Field
- Slider with two images at a time
- Return function results within shortcode
- Why is my Footnotes plugin is not working?
- Debug in WP backend
- WP-CLI plugin delete command fails silently
- Woocommerce categories displayed on every category and shopping page
- Frontend is empty wordpress
- Help with customising love it plugin (use within foreach)
- “Share” Content from Another Site as Post
- Best approach to serve static content within a regular page
- WP plugin calls for custom pages
- Javascript in plugin not working
- Theme editor removes backslashes
- add_external_rule – rules deleted when visiting permalinks page
- Change pages based on city
- Images not showing on homepage after migration [duplicate]
- Widget Script Loads at Bottom of Page
- import a latest vimeo user video into a page
- Create user assessment and use results in sql query
- Plugin Hook: Get posts
- auto create blog posts depending on list
- making a glossary with wordpress
- Add jQuery in dashboard when is already added in main plugin page
- Ajax Not Working If The Handler is Located Outside Plugin Submenu Page Function
- get_var result empty for query of custom table in plugin admin
- Google Language Translator – Manage Translation
- WordPress multisite haml templates
- Is it safe to increase/alter the size of the wp_post.guid column from VARCHAR(255) to VARCHAR(2048)?
- correct validate inputs
- Developing a Site Like AllTop.COM – RSS Reading Problem
- Display Custom Post Type and Custom Taxonomy Data on Front End Using Only a Plugin
- redirect to custom php template in wordpress plugin directory
- Why plugin’s icon for the menu not found?
- How to add a text in the checkout page woocomerce?
- prevent contact form 7 from submission on certain condition
- How can I send api calls from my plugin?