Send an HTTP request to the page and search the response body for </h1>
.
See this Gist for an example.
Store the result in an option and delete this option when the user switches the theme (hook into the action switch_theme
).
Related Posts:
- Creating a table in the admin-style?
- What process do you use for WordPress development? [closed]
- How do I create a custom role capability?
- Where to put third party PHP library?
- Add a new tab to WordPress Plugin install Listing
- Export data as CSV in back end with proper HTTP headers
- Scheduled events disappear from events queue
- How to integrate a PHP webmail script into the backend of WordPress?
- Calling the widget id of a mult-instance widget from inside the widget?
- How to log plugin errors to plugin error_log file
- Custom Post Type Link from Plugin
- How to Get a List of Sub Blogs without Using get_blog_list()?
- Do I need to call do_action in my plugin?
- Conditional check to see if a bootstrap.css is included in a theme
- WooCommerce get Shipping Class of product from either the product id or the order after order is completed
- WordPress multisite apply different options over each site from same plugin
- Using ob_start() in plugin
- Dequeue script, but still use wp_localize_script to pass vars
- Create Element From Dynamic HTML String [closed]
- Can I add pages to my custom menu via script?
- Only allow plugin to be activated on root site of multisite
- what is the best practice for including ‘wp-includes’ classes
- Programmatically Selecting Theme Based on URL
- Custom Plugin Database relations
- Save user-specific options in WordPress admin
- Why is print_r returning $classObj->userObj in several places on site
- Is it possible to load plugin from console with core ?
- How can i get the title i specified in add_options_page for my header
- use __($str) to translate strings (symfony/twig)
- Plugin development: is adding empty index.php files necessary?
- Plugin base URL
- Is there a way to list tags order by post_meta field
- Customize multisite site creation with user data
- Mixing Regular Javascript With jQuery in a Plugin
- Best plugin for most viewed post [closed]
- What could cause my plugin’s options/settings page not to load?
- Plugin Upgrade Strategy
- Which are the hooks run before/after when a category’s deletion?
- Disable The Events Calendar plugin from loading its scripts
- get_the_excerpt() not working in plugin loop
- Where to call wp_enqueue_script in a plugin with custom template?
- How to remove images from my plugin page in WP Directory?
- Is there an additional block.json property to set to get an InnerBlocks child to respect the “supports” property?
- Plugin with action ‘save_post’ needs to press publish twice on order to publish
- How to prevent UNDO on guternberg block editor
- do_action and add_action on two different installed plugins won’t work
- How to override gutenberg paragraph block edit property
- How can I get the selected string when using a toolbar button in Gutenberg?
- woocommerce_checkout_order_processed hook executing function twice
- Authorizing a plugin to call Google Analytics v4 API on wp_cron
- WordPress pre_get_posts with combined results of two queries (OR)
- How to analyze wordpress plugin performance
- how to use shortinit in wordpress
- Wrap text around shortcode
- Alternatives to DISALLOW_FILE_EDIT wp-config Constant? It Breaks Some Plugins
- Checked() function on a multidimensional array
- Declare plugin dependency [duplicate]
- Plugin does not add action
- Warning: call_user_func_array() expects parameter 1 to be a valid callback
- Jquery was not found on this server
- Is there an admin hook that will let me read GET variable before it’s too late to set the header Location
- WordPress plugin development OOP style
- Plugin language always shows WP site language, not profile language
- How to create a digital product download link that can’t be used twice?
- Creating an installation zip file
- update_callback is not working in register_rest_field
- How to create ShortCode
- shortcode tags not working in do_shortcode
- Working of foreach loop with array
- Why is the form not updating when I select a new sector from the list?
- How to change a field in database through a submit button or Checkbox? [closed]
- Grandchildtheme (plugin) add header.php (not exist in child theme)
- $wpdb->update Issue
- wp_insert_post generated mixed permalinks
- Is there any way to pass messages from a script to a redirect target in a hidden fashion?
- Import images remotly run through timeout error
- How to make every image title equal to alt text(wordpress/woocommerce)?
- Load specific page when a custom URL is hit
- Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial
- Trigger function on Remove block or add new block in Gutenberg JavaScript
- HTMLCollection not counting right in editor? / for loop not working on elements in DOM
- Trying to rename a file upload as the hash of file content on wordpress
- Getting products information, in woocommerce based on products ID
- Fatal error: Uncaught Error: Using $this when not in object context
- How can I measure CPU and RAM used by my theme or plugin
- want to confirm popup with “Yes” and “No” button when user click on add to cart
- do I need to sanitize a shortcode’s function input?
- Email content as comment
- set a custom post type to a taxonomy term programmatically in metabox
- Modify search form with plugin
- Organising and completing posts (mark as read and hide)
- How to display properly exception or echo string after posting in plugin?
- When using an options array the Settings API isn’t creating the database record
- the correct way to use options from settings page [closed]
- On one of my sites a file is shown as 404 but the file IS there
- I want to add post meta for picture thum during submit for revision
- How to synchronize an e-commerce site and a pharmacy management software?
- woocommerce features to add product along with link
- Extend WP_List_Table class – Edit wp_usermeta – WPPB.me Boilerplate – Action error
- Display months on a drop down calendar as TEXT instead of Numbers