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]
- 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?
- 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
- 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
- Edit default comments page in WP Admin
- Creating a plugin to sanitize comment and the url field before display only
- 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?
- How to change the name of the “edit my profile” link in the WordPress admin backend
- How to call plugin functions in a custom template
- add_action in a custom plugin
- Template filter for custom taxonomy terms
- Add action to fire when a published post is updated
- Run a plugin just ‘once’ per page reload
- Override a Plugin Function
- Can I filter a function created by a theme or a plugin?
- Add a function call after content automatically?
- How to request admin-ajax.php correctly when wordpress URL and site URL are different?
- wp_ajax action responds with 0
- Custom CSS not being added by plugin
- Looking for a filter to modify the months
- I cannot include a file in my plugin settings page
- What’s the best way to echo out a filter variable?
- How to convert Currency from USD to other IP Based currency in Php function
- How i remove specific script from header?
- Why do actions with class and public method don’t fire __construct()
- How to remove default action from a plugin?
- taxonomy_template filter not working on pagination [duplicate]
- 500 Internal server error wp_handle_upload_prefilter
- WordPress website working fine on localhost but not displaying front pages on webhost
- Using Filters to modify contect – DB query results alwats appear fist
- Get post content inside plugin class method
- Unset plugins on front-end belonging to specific category
- Ajax call to php function doesn’t work PHP code
- Frontend AJAX Request causes Error: ‘Call to undefined function add_action’
- Creating Admin Submenu Page via Class Method
- Am I using an action hook correctly?
- plugins_loaded action is not working properly
- passing ‘&’ in return function of add_filter
- add_media_page function not creating submenu
- County Finder form/plugin?
- WordPress User Frontend Editing Custom Fields
- How wordpress plugin hooks works? [duplicate]
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]