WordPress offers a dedicated API for your need: the Plugin API. So (let) write a plugin, which is really easy. Then you can use the extra code probably without conflicts.
Related Posts:
- Adding “Remember Me” in custom login
- The correct method to pass query vars in AJAX using ajaxurl
- Using wp_send_json to return HTML
- Display user’s total comment count outside The Loop
- Getting the action’s tag name within the action
- WordPress Infinite Scroll without using any plugin
- Add post class to the TinyMCE iframe?
- Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress
- How to add query vars with paginated URLs?
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- How to Join two tables from separate databases within WordPress
- How to find objects by terms
- Bypass .htaccess when using download_url
- How to change
- Get only the grandchildren, not the direct children of page/current page?
- Use wp_remote_get to get JSON instagram feed from public profile
- How to add SVG icon above product tab title
- WP_Query sort using multiple numeric meta values
- Anyone can register via backend
- How to get to a specific position in wp_query?
- custom widget on the footer
- Preferred Method of debugging a wordpress SQL calls?
- WordPress does not load page.php, return 404.php
- How to use my style.css file outside of wordpress subdomain?
- How to hide all child pages with post_query?
- How can I apply_filters from inside a function?
- How do I start using an external API and PHP for a WordPress.org page?
- Unread Repeater field IMG alt not working
- How to add an arrow to menu items has submenus
- I want to load in a new class but only if the current page is single-movies.php
- wp query foreach deleting record returning only first or last item
- Customizer: Category Select Sanitize
- action theme mailchimp subscriber fields
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- Skt full width basic slideshow problem
- Why does wp_head hook my functions to the beginning of my source code?
- PHP echo inside javascript
- Value prints outside of the echo
- wp_insert_post: array only. wp_update_post: array|object (?)
- If ‘editor’ is empty, then
- Different Subdomain changes page content
- Removing the comment function within wordpress
- Display Yoast meta-description `wpseo_desc` within loop of categories and fail silently if no data is set [closed]
- Does get_post function counts as view?
- Get ACF options field in PHP acting as CSS
- Permalinks are not working in WordPress in digitalocean
- Bootstrap Carousel HTML structure and funny output [closed]
- How to remove custom style from source?
- Amend theme php to include certain category in header
- add category to posts with tag wordpress
- Missing a text-domain esc_attr_e
- Get all posts from categories
- How to add post classes?
- How to insert data from metabox to custom table
- How to Generate a list of Most Commented post?
- Updating From Mobile App – Exposing Site to Hacking
- Extract and display user infromation on an automatically created page
- is user member of a group, show them categories [closed]
- How to add ASCII symbol after each recent post [closed]
- Using multiple variables to assign categories to an array
- Show Custom Menu Name in WordPress 3
- Export post data with xml to other site using php soap
- Execute PHP code only with specific user role
- Repeat a function with 24hrs gap for n number of days
- Add a custom WooCommerce settings tab with sections
- How to serve WordPress folder over subdomain?
- How to call my PHP function with AJAX ? wp_query
- Get the same SKU from woocommerce itself for simple and variable products
- Show sidebar only to author of post
- No more get_option(‘date_time’) in WordPress 5.5?
- how to add custom select field to wordpress edit page
- How to update post content of all posts with tag?
- Create category after theme setup and modify the default one
- Make WooCommerce product categories only show images on homepage
- How to Change Site Elements based on referring URL
- WP post meta – for loop inside for loop
- WordPress Query Crashes Browser
- Prepared DB Query from _POST array
- WordPress using get_term to retreive slug not working as expected
- auto metakey value on post tile
- Static home page ignored
- On a custom template, should I use wp_footer? [duplicate]
- Front end post submissions do not get submitted in the category
- How to pass parameter that ends up being part of a class name with wordpress shortcode
- how to check for wordpress Query errors
- calling a function from a class in your template
- Custom single.php files for different post formats
- Troubleshooting “loopback requests that take too long”
- AJAX & PHP | Call a specific PHP function from a PHP file via AJAX?
- If I define a variable in header.php, how do I make it available to templates?
- Order woo products, but first products must be with acf fields
- Remove /category/ from category (archive) page URLs (without using a plugin)
- JSON Object Value Show Undefine
- Understanding responsive imagery
- How to get meta box labels?
- get_query_vars always retruns empty value
- How to group by column a and sum column b and c in a php array
- Convert custom field date format to “WordPress default”
- Woocommerce Convert existing order to the cart
- Execute function when I click button