If i understand, You simply want to have all html from page. Why just don’t do a request to the page in response You have html.
Here is the suggestion from codex:
/** @var array|WP_Error $response */
$response = wp_remote_get( 'http://www.example.com/index.html' );
if ( is_array( $response ) && ! is_wp_error( $response ) ) {
$headers = $response['headers']; // array of http header lines
$body = $response['body']; // use the content
}
Related Posts:
- Passing a parameter to filter and action functions
- Get a list of all registered actions
- How can I edit post data before it is saved?
- Where is the best place to use add_filter
- How to only hook on Single.php after content?
- Use external link in the add sub menu
- Very stubborn wp_register_script / add_action vs remove
- How to prepend to the_title for admin-side plugin’s use
- do_action and hook methods
- How to filter content post only on save
- Filter or action hook to insert content on admin pages before tag
- What is the purpose of $merged_filters?
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- How to check current user before all actions and filters?
- Get Time Taken By Each Action Hook in WordPress
- Plugin developer automated documentation
- Is there a hook to Intercept al urls from a webpage and redirect to a page
- WordPress user account activation
- External Script Using WP – Hooks / Actions Not Working?
- Is there a way to figure out which action/filter invoked a function?
- Using add_action before add_filter on a plugin?
- remove_action not removing add_action from constructor
- Editing wp-config.php
- How to use add_action for multiple instances of the same class
- How to hook into action/filter call
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Edit post image attributes on fly?
- How to Unhook actions/filters in within Class in plugin
- Nested Actions and Filters
- Use action, filter, or hook to append HTML to WordPress plugin function
- Remove action added in plugin class from theme
- Help needed with woocommerce (wc stripe) filter
- What action/hook do I need to register to have my plugin handle front-end editing?
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- Why doesn’t a form need an ‘action’ with a plugin that uses the post data?
- Passing a parameter to filter and action functions
- change output location of plugin function using a custom hook
- Filter for modifying image on upload
- Which filters or actions involve with index page for plugin?
- add query string to all pages after user logged in
- Which action/filter can i use for a Member Plugin [closed]
- How to customize WP_Error (REST JWT authentication plugin) [closed]
- What characters are allowed as a shortcode tag and how should they be sanitized?
- What is the ‘admin_action_’ . $_REQUEST[‘action’] hook used for?
- How to remove filter added by another plugin in a class
- Using add_filter inside another class
- Good tools for locating hooks in a wordpress page/admin interface/blog post?
- Hide WordPress Plugin Deactivation Links
- Alter post slug by a filter that is fired just after a post is created
- Restrict backend but allow to use post.php?action=delete&post=POSTID from front-end
- Remove action from a plugin class, forced to use global instance
- Is there an action that is called when a post is restored from the trash?
- remove filter which calls a public static function
- Determine plugin name from within plugin_action_links filter
- Handling jQuery Component Collision
- Can I use a method from an existing plugin as an action hook?
- Detect when any plugin is activated or deactivated
- How to remove xmlns on language_attributes()?
- How to modify shortcode attributes with data from current post
- add_filter comment_edit_redirect not working
- Overwrite or Replace code in WP_Footer
- Preview featured image using frontend post plugin
- Any hook for pre-plugin-update -either bulk or single plugin update
- Edit default comments page in WP Admin
- Creating a plugin to sanitize comment and the url field before display only
- How to add a full edit link to front-end editor?
- When to load auto-login code?
- Passing an array from shortcode-function to filter-function
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- How to disable a plugin for certain page?
- Inject HTML meta tag inside wordpress tag using add_shortcode
- do add_action on condition
- Remove_action from plugin with a Class
- Are there action hooks for comments?
- Change text string in a plugin
- WooCommerce: after install hook
- How to use filter to disable adding a product to wishlist?
- correctness of URL
- Advanced Custom Fields (acf) – Filter Relationship by Taxonomies not Post Type
- How do I change where a plugin pulls updates from?
- How to use apply_filters?
- what is the point of telling add_filter how many parameters you want passed to the function?
- Filters on the_content with plugins, pages and shortcode
- Effeciently adding Checkboxes to TablePress table cells
- Want to create custom design of progress indicator in wpforms
- update_option_{$option} not working (do function after options are saved)
- i create functions.php in plugin files but add_action (‘wp_head’, ‘function_name’) don’t work
- how can I edit the HTML of yith ajax product filter
- Passing function into add_action always returns the first argument
- Customize plugin’s output: filters or setters: looking for an advice
- Change hook to add_action in a plugin class
- Why is WP template_include overwritting all templates rather than specified page?
- Can I add content before post content without using the_content filter
- apply_filters to content but ignore shortcodes
- How to add different CSS for galleries
- Get a submitted value from front end post form for single template
- How to add a filter conditionally based on page related Conditional Tags
- map urls to plugins
- Custom Login and Password Reset for BuddyPress Website
- Add custom button to the changeset status in the Customizer