You’re talking about scraping, which is generally an unreliable method of getting data, especially if you don’t control the other page.
However, in PHP, once you retrieve the download page with something like wp_remote_get, you can use a regular expression to extract the pieces you need with preg_match_all.
$response = wp_remote_get( 'domain.com/download-page/' );
$page = wp_remote_retrieve_body( $response );
$regexp = '/developed by <strong>(.*?)<\/strong>.*?version is <strong>(.*?)<\/strong>/';
preg_match( $regexp, $page, $matches );
echo $matches[1]; // Jim
echo $matches[2]; // 25.0.8
Basically, each of the (.*?)
parts captures the content that appears in that part of the pattern, and puts it in an array called $matches
. Note that any change to how the developer and version are presented on the download page will likely break this pattern, so be careful.
Related Posts:
- Combine CSS and JS files from plugins
- How to call a PHP function from Javascript in WordPress
- Display message once per session to users with a specific role
- Nice scroll to wordpress
- How to use the php if statement [closed]
- lazy load comments wordpress on click
- How to block specific keywords from searching on WordPress?
- How to create filterable portfolio in WordPress?
- Using a javascript file to access a get posts array
- Minify HTML, CSS, JS with PHPWee?
- Run a Parallel PHP Application with WordPress
- Uncaught TypeError: Cannot read property ‘firstChild’ of null after upgrading to WordPress 5.5
- Access/update database with jQuery
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- admin-ajax.php responding with 0
- How can the plugin directory path be returned into ?
- Customizer Show/Hide
- Page Reloads Before AJAX Request Finishes
- How do I fetch all comments per post via WP REST API?
- Deregistering a script in WordPress seems impossible
- How to prevent those PHP variables from being cached on WordPress?
- Ajax return code 400
- Pass PHP variable to JavaScript without inline JS
- Show post in slider
- How do I display a user’s previous orders as a select box option on a product?
- How can I use a modal window to display the current post in loops featured image?
- Trigger popup in a php if/else statement
- How to pass aa JS variable to PHP?
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- Image upload via FormData API and AJAX is not working ($_FILES always empty)
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- Menu jumping when calling it via PHP
- wp attempt focus, disabling without touching core
- Setting value of session with Ajax not working
- Accessing WPDB Multidimensional JSON Array w/ Javascript
- wordpress wp_enqueue_script() not working
- How to optimize the IF condition with many conditions and same output [closed]
- admin-ajax Firing Error 400 When Logged In
- Jquery window.send_to_editor function
- How to add drag and drop functionalities to a div inside option panel
- AJAX wp_insert_user WORKS but responds with “The site is not enabled”
- Can’t add script immediately after the opening tag on login page?
- How to change logo by category
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- Incrementing PHP variable onclick to display posts by month
- JS file is not loading when i put wp_head() and wp_footer
- Run JS Code on userlog out
- How to add 3 weeks to the_time() function
- Covert WordPress Blogname into JQuery
- Ajax URLs without #!, how to prevent falling into single.php on load or reload?
- PHP variables in a post?
- How to sort posts by active category in WordPress?
- Hot to check if new posts have been published since page load and notify online users?
- Additional file upload in Gutenberg page options/featured image
- Time Delay a URL Redirect for Specific Page
- Cascading dropdown select search based on Parent Page & Child Page
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Display WordPress search results based on the selected Sub-Category
- Variation prices breakdown only for single product page
- Unable to display multiple parameters from url by javascript through shortcodes
- Settings API form – submit with AJAX
- Woocommerce disable order item link (backend) [closed]
- Adding HTML Code to Replace Text in PHP
- How to add JS script in specific pages in WordPress?
- Load more posts using AJAX based on posts inside WP_Query
- How can i find wrong word in search box and replace with correct word
- How to use wp_ajax_set_post_thumbnail?
- Passing a value from an input field to a php function in WordPress?
- Display one random image from Media Library
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- gettint error 400 with AJAX
- Using wp_editor() when not logged stopped working
- Modifying child theme’s header
- Show subcategory name selected in specific category woocoommerce
- Javascript / PHP – closing the loop
- I can’t load my images from a js file using wp_localize_script
- How to output values from a loop into a javascript array
- Move Jquery.js to Footer
- Bring Font Awesome icons inside menu A tags
- custom post type column countdown
- Pass product object to javscript
- Automatically refresh page if widget is added to page?
- number of posts with “Load More”
- Call custom JS function from PHP
- How to send Ajax Call from frontend without using wp_localize_script in Theme
- Complex PHP for json_encode > how to handle/output right?
- How can i iterate through this shortcode array?
- How to use Amazon Elastic Transcoder from WordPress using AWS SDK for PHP?
- add bootstrap modal after login in wordpress
- How to get values from wordpress listings and use them in javascript array?
- Help with my first Metabox helper class
- Add multiple JavaScript files to template header [duplicate]
- What’s the best way to format ACF number fields for display on the front end?
- Add specific phrase after every product title including the discounted price? [closed]
- link to page_for_posts
- Trouble figuring out how to get my button to submit comment
- Import and use a variable in additional settings of Contact Form 7 [closed]
- Is there a better way to output HTML as a shortcode?
- bloginfo url in javascript
- Fetching only specific value from php file