I get the solution.
To call functions from WordPress from a custom script, you need to import wp-load:
require_once("/path/wp-load.php");
Thats all, I can work fine with those functions. I save my own script in the root of my PHP WordPress and I didn’t need a plugin.
Related Posts:
- How to change upload directory in wp_handle_upload
- Need help setting default setting value for radio button in theme customizer
- How do I use Shortcodes inside of HTML tags?
- What difference does it make including the @package annotation or not?
- How to have a custom display for both woocommerce archive and product-category pages? [closed]
- Renaming wp-content folder dynamically
- Replacing a specific menu item
- Trigger a php file on every post or page if a condition is met
- Prevent multiple counts by same user – WP PostViews plugin
- How to upload imagick resource to media in wordpress
- display most popular tags in two columns
- Having Issues on Using PHP glob() in WordPress
- Passing data between two hooks in separate HTML requests
- Creating a new page and automatically associating it with a template in WordPress
- Send PDF link in email based on radio button selection
- Put a link to a category round a hard coded A HREF
- Add relevant tag to search results
- Replace word in “the_content” only for index.php
- Cannot display or echo alt text on featured image
- Using Advanced Custom Fields to create a per page slider
- How can I properly control the numbers and dots that appear in pagination?
- Using loop pagination on single.php
- Using the echo command adds unwanted br tags to source
- How do you ensure that a user is recognised and available for use only when it is verified through a row in the database called ‘accountVerified’?
- Issue adding sub category programmatically
- How to display pictures from database?
- custom url rewrite for wordpress
- Customizer: Multiple CSS styles on same element in Live Preview
- AJAX success response is not working but it’s saving my changes
- Best practice for show data to one specific user?
- WordPress and Conditions
- How to determine if the sidebar is empty? Or not active?
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- Add filter multiple times using only one master function
- WordPress member notification
- Unset session variable on page reload / setup but exclude AJAX
- get_posts works in the page template but not in a shortcode
- Create page with custom php script and fetched data
- How to show an entire post content and not also the excerpt?
- Strip Paragraph Tag
- WordPress shortcode returns the data before
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- Getting different user data depending on where I use variable
- WordPress PHP command and ELSE IF problem
- WordPress produces identical hash all the time
- How to hide post in WordPress
- using wp enqueue style to create a CSS file specifically for a page template
- The user can only see their own profile
- Hide a div when a custom field is empty
- Fatal Error wp-settings.php on line 119
- How do I custom code the start page?
- what does $options = get_option(‘test_theme’); do?
- Is it possible to isolate and use WordPress functions outside of wordpress
- Testing a Form’s Zipcode Field with Regular Expressions to Determine WordPress Page Behaviour
- Adding a custom meta field with default NULL value which is not selectable
- Custom html/php/jquery map code in WordPress/elementor?
- WordPress url By country code?
- How to change basename url for wp-admin?
- Prevent header and footer from loading on specific pages with template or plugin
- Get taxonomy terms that share a common object property
- My Custom Post Type AJAX Query is Returning no posts – why?
- Styling a category link
- Woocommerce display orders with products from specific categories to specific admins
- How to exclude meta no index pages from wp_list_pages
- Trouble matching strings (titles) using wp_query
- Current WordPress Page Title as Search Parameter into A Tag
- Limit the number of characters/words in an excerpt for a related posts section
- Yoast Breadcrumbs Inject Multiple Levels
- Remove all feeds and return custom 404 page
- Maximum file Upload
- wp_get_nav_menu_items() with ACF
- Unzip_file causing Media file upload error
- Primary navigation menu with timed items from custom post type
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- Different Logo for Different Pages
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- WooCommerce – Add Shipping class below each product in Shopping Cart page
- Escaping a Single Quote in str_replace for Nav Function
- Use fetch_feed(); Totally Outside of WordPress?
- SQL Query Search page
- Unable to get Post Category Name and URL
- Create a dynamic buddupress tab
- RegExp to EXCLUDE strip HTML (FOR SOMME) comments
- Accessing external database: ERR_INCOMPLETE_CHUNKED_ENCODING
- Would it be possible to route WordPress Through an MVC Application
- Problems with plugin that fetches data from database with ajax
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- jQuery vs. $ – Creating jQuery scripts in JavaScript in WordPress using External Libraries
- When I use rewind_post() it shows menu items in my loop
- Problem using explode inside add_shortcode() callback funciton [closed]
- How to post data to a word press site in case of a mobile app
- What languages were used to build WordPress? [closed]
- How to strip/remove all blank spaces at the beginning/end of a search string
- How to create categories out of a list of words?
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- Difference between php memory limit and wp memory limit?
- why is kses removing semicolon from inline style?
- WooCommerce: write featured image dimensions to custom fields in product’
- transition_post_status hook, works – but not if the post is new
- How can I change the location where the custom field is displayed in the Quick Edit tab in WordPress