i figured it out, i had to change
$jq = file_get_contents(includes_url( '/js/jquery/jquery.js' ));
to
$jq = file_get_contents(ABSPATH . WPINC . '/js/jquery/jquery.js');
and it worked. can anyone explain why this works and the old one doesnt?
thanks!
Related Posts:
- How do I make a redirect in PHP?
- User registration followed by automatic login
- WordPress and event-driven programming – what is it about?
- How WordPress encrypt password? [duplicate]
- wp_insert_user role not working
- Retrieve POST data from AJAX call
- Adding a custom image upload size and making it selected by default?
- Facebook Comment Count
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- How to overwrite youtube embed?
- How to resize image on client-side before upload?
- Filter the blog title displayed in the header
- Limit the Excerpt field in WP-Admin in words
- Foreach insert query the best way
- How to change / delete product short description in Woocommerce
- How do I add HTML to a PHP function [closed]
- register_activation_hook isn’t adding table to DB
- how to get the value of time left for a transient
- How to generate page content from database the right way?
- How do I show the featured images for my child pages on my parent pages?
- dynamic php inside wordpress page
- Converting MYSQL to WordPress $WPDB
- WP_Query loop, does not display special characters in title correctly
- Remove query string specific key value
- is_page “range” for if statement?
- Get Admin Email Address From External PHP page
- How do I get current page ID in WordPress customizer file?
- How to run a php file that uses wordpress functions from command line?
- Was told to change the .htacess file form .html to .php so this would work properly
- WordPress Ignoring .user.ini
- Cron events are disappearing, or cannot be updated in WordPress
- Prev/Next child navigation for current page modifications?
- Adding rel tag to all external links
- Displaying Woocommerce Product Category in WordPress
- Split reads to a different connection string
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- Show success or error messages in Ajax response to WordPress custom registration form
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- Where can I create a normal php file?
- Copy taxonomy terms from one post to another programmatically
- Prev/Next Links Broken on Static Front Page Pagination
- Decimal values via get_option() with custom local (decimal point = comma)
- Is there a built-in function to generate multiple paragraph tags based on a string with new line separators?
- Site downloads files instead of loading them
- Saving data from custom form in wordpress database
- Integrating Yii2 and WordPress
- PHP E_WARNING being shown despite php.ini [closed]
- After disabling WPML multi currency, the currency is still handled by the WPML
- preg_replace on all HTML content in WordPress
- How do I check if there is a tag in the title
- GravityForms Limit Submission Per Time Period by User or IP by 30 minutes?
- Post class only applying to first excerpt; why?
- Truncate title to single line & container width
- WordPress Rewrite Rule
- Programmatically revert to backup .htaccess a possibility?
- Prevent post from being published and show error
- how to get wordpress page url php code [duplicate]
- WordPress User Meta value variable into Google Gauge Chart
- Problems updating nested ACF field groups
- how to pull all usernames from a custom user role, then do some array modification
- Unable to delete related media attachments with deleted post
- Embed video from streamtape using direct link
- separate list of programs in html/javascript coming from php
- Is there a PHP function that will return the block ID generated by WordPress?
- retrieve “Link Color” value
- Creating a Function and Call It
- How to print all the inline styles in the WP_Styles instance together with their keys?
- Adding column to wpex_users
- Issues adding Recaptcha v3 to WordPress Registration
- WordPress ajax filter returning all posts when it should be filtering by category
- WooCommerce Quantity in Dropdown menu instead of clasic [closed]
- Trying To Call a Dynamic Email Address
- Theme editing “post thumbnail” help
- Hide comment notification number and buttons in wp backend
- Create html tree sitemap
- How to Request a User to Register on Landing at a Site, Then Automatically Delete the Users Password on Logout?
- meta field for numerous links
- Custom HTML form using PHP – help with ajax/username validation
- Custom Theme, Editor won’t wrap text (i.e. change width)
- Where can I find the declaration of `$_wp_theme_features`?
- redirect 301 with special character like WIX site “#!”
- How I can add div to menu?
- How to print redirected query string variables to the page?
- Multiple URL from Custom post name
- Admin-area broken through weird issues
- Display a query with multiple post types and same relationship on a single page
- Get string from array and start loop [closed]
- Custom query_posts() parameter
- Convert ACF checkbox choices to links [closed]
- How to modify this function to exclude also the post belonging to a specific category?
- wp_link_pages return value even when is condition inside if statement
- How to quickly/easily make an analysis (reverse engineering) of WordPress?
- New to wordpress. Need Help with templates [closed]
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- Need help with conditional logic for menus
- Disabling User Email Notifications for Erase Personal Data Utility
- Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only
- generate excerpt from the part of big text dump that contains keyword
- How to sort search result by post_title, then by post_content
- Custom Admin Menu Report for Specific User ID