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:
- Difference between add_filter and apply_filters
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- Notice: wp_get_http is deprecated since version 4.4.0!
- How Do I add a redirect rule to WordPress?
- How to properly secure my WordPress installation?
- How to add usermeta to “Notice of Email Change” email message
- Is it necessary to translate WordPress key terms when localizing a plugin
- Adding dynamic section to WordPress
- wp_mail() is not working on server
- How to edit/delete single row items in a table on my own menu page
- Disable wp_enqueue_styles action for specific page
- Is there plugin to show recent posts from one website in the widget area of another?
- How to create custom embed block in gutenberg wordpress
- How to add css class to a specific set of images?
- WooCommerce E-Check payment gateway disappeared when site switched to multi-site
- How can sanitize $_FILES[‘haq_slider’] field
- Facebook plugin shows existing comments
- How to trigger $_GET request within admin plugin page?
- Wp favorite posts get user favorites in profile using buddypress [closed]
- How to configure two SMTP Server for wordpress
- Preferred way of cacheing a value in php
- Internationalization autocomplete JS variable
- Howto accurately position images with maximum flexibility?
- Using a post-signup hook to get user details
- How to apply a patch via plugin?
- How to merge two .PO language files?
- wp_remote_get() returns 403 while file_get_contents() does not
- How to set add question capability for author role in wp pro quiz plugin
- Which widget to use for display category post with view more? [closed]
- Create a multisite network for an existing installation
- polylang + category/tag custom language link
- Unable to delete custom post types, confusion around capabilities
- How to create multiple database tables on plugin activation?
- where is the main file in this plugin?
- Multisite for Multisite?
- breadcrumb need to show all pages and subpages
- Widget’s container?
- Customizing Titles on the Fly with Code
- Is it possible not to load theme on a specific page in wordpress?
- How to change shortcode’s default theme?
- How to accept images at multiple sizes and aspect ratios and display as standardized image size / ratio?
- How do I get the Payzone WooCommerce payment gateway plugin to show up in the settings? [closed]
- How do I localize admin-ajax.php that is used in Ajax Load More – Infinite Scroll?
- WordPress Widget Not Saving Instance
- wp_insert_post() inside save_post(): force WP to not update global post object?
- WordPress truncate posts question (plugin related)
- Microsoft Word documents to WordPress pages adding paragraph tags
- Different registration form for different roles
- My plugin does not install correctly if a previous version is still installed
- Why aren’t my Follow Me links working?
- WordPress ping spam issue with Ping services?
- 404 errors when updating options in admin dashboard
- cannot find cforms action handler page
- Hook from plugin doesn’t fire up from external PHP script
- Custom User Registration Form not showing
- Drag and drop widget always inserts image
- Slideout submenu in mobile
- How to solve conflict with scripts?
- What database state changes happen after a post is manually “updated” with no changes?
- Display posts by alphabetical order
- wp_insert_post not inserting post from XML
- Admin Custom Plugin List Files in admin Table
- Overriding a function in a WordPress plugin
- Access “wp site health info” data from plugin
- Website always load twice on start
- How to update a database entry with a wordpress plugin?
- Change Woo Custom Endpoint Titles from a Plugin
- Is there a way to display multiple authors on a post?
- custom sidebar plugin issue
- White blank screen while adding or editing pages in wordpress
- Product catalogue in WordPress
- How to get bulk actions handler to display simple “Hello World”?
- Plugin debugging with errors in activation routine
- one admin for 2 wordpress websites
- Get input form data posted by users
- Number format in thousands on highcharts in wpdatatable plugin
- DB Sync Media Files extension [closed]
- Disqus comment system – change comments number before “load more” button
- What Are the Advantages of Using an mu-plugin
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- How to keep edited plugins updated?
- W3 Total Cache Can’t Really Detect Things
- how to create or rewrite files in wordpress plugin folder
- Determine if get_the_image has image on Get the image Plugin
- How to show author’s avatar in the post meta data with plugin `user-avatar`
- How to add different CSS for galleries
- How do I add php to all links automatically?
- Top Contributors Plugin with Custom Post Type
- WP-Minify 400 errors and open_basedir restriction in effect
- Plugin Links to page not working
- My WP site and password was hacked, what to do? [closed]
- plugin how to find code and edit it in a template file?
- how do I solve Installation failed: There has been a critical error on your website
- WooCommerce product prices not showing up correctly [closed]
- How often should I execute add_filter and function declaration in Code Snippets?
- How to change all the urls of the WordPress site?
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Ad Management Plug that can be used on a membership site
- How do I remove the filter from the orders and add custom status in Dokan?