This was fixed by using plugin_dir_url.
Related Posts:
- Best collection of code for your 'functions.php' file [closed]
- How to include a plugin’s php file to another plugin functions file [duplicate]
- Limit access to posts/pages by user roles
- Remove Google Fonts Which Are (Probably) Added By Plugins
- if plugin is active? check if plugin is enabled or not?
- Common functionality between my own plugins
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Which method is best to enqueue scripts
- How to override a theme function (within a class) using a plugin
- Seeking clarification on page request life-cycle
- How to assign user a role if none is present when logging in
- Saving Plugin settings to the database
- How to remove action from plugin?
- Migrating a File from Plugin to Theme and changing its path → instead create a REST endpoint
- How to find out what blocks are added by a plugin
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- WP Paths in a Plugin – how to include
- plugin development: problem with functions
- AJAX button run function
- Dropdown menu on custom page with product to choose number of products per page
- How to append to title via functions.php for auto-posting plugin [duplicate]
- Bootstrap Drop Down menu is not working
- Custom random quote widget breaks when used in multiple sidebars
- How to change constants in WordPress wp-config.php programmatically?
- Override Plugin Script Fucnction in WordPress
- How to display custom sidebar in wordpress 5.5.2
- Added slug after URL permalink last slash returns different content
- Replacing a plugin function with a custom renamed function doesn’t work
- How to call WordPress function other files
- Conditional attributes and logic per product category
- Disqus deleted comments are syncing with wordpress but active comments do not
- WordPress get_avatar function not correct working
- WordPress metaboxes – textfield suggestion automatically populated
- How to create an option page for this simple plugin
- What is @Action in WordPress?
- Improving the perfomance of a plugin action
- the_tags : can we insert a class
- Check if variable is set in filter
- WordPress checkbox and Illegal string offset
- Image change on hover
- Passing stored variables to add_filter
- Undefined index: action plugin problem
- PHP script from functions php is loaded via admin-ajax to div…and the result is 0, not the desired content
- Adding class to last list item? Not WP generated
- I changed .live() to .on() but change is not reflected on the server
- wp_enqueue_scripts
- How to make a dynamic css class whose name changes every visit to confuse scraper
- How can I fetch data from another website to my wordpress website with mysql database
- Where Should i write the code for wordpress ajax voting?
- How do I convert my WordPress website to be domain agnostic?
- how to change wp-admin url using function file
- Add the_post_thumbnail_url to a shortcode in function.php
- Show media-uploads to all users
- Changing plugin options from theme functions file?
- Expected ‘add_filter’ (T_STRING)
- Could not add ‘LoginLogout’ link using BAW login logout plugin
- My widget won’t update its values when save is clicked
- how can authors to define custom pages?
- Adding a Tag Parameter / Filter to My Shortcode
- Adding a pagenavi to function for displaying bookmarks
- What is the most efficient way of adding additional functionaliy for admin only
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- Replace the_content with ACF Flexible Content via function
- How to upload large media file in chunks, without any plugin?
- Create category for each user
- WP Function does not trigger on Webhook API Call
- Why do I need to reload the page for WordPress to see the new custom field added with jQuery
- Cookie value changes back to previous value after changing
- RSS Feed on WordPress showing code (hypertext) in articles titles
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- How to add specific script to WordPress webpage that will working with user input and databases
- Cannot pass value variable to WP AJAX functions
- Sharing varible between two add_actions
- Hide Plugin Custom Post Type Menu Link
- How to create algorithm for ordering posts in WordPress?
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- Add external javascript to post template
- post id or permalink auto-incrementing number and reset everyday
- Override filter variable not working
- Get a Taxonomy values in an array
- Update (a function) post’s featured image as soon as $image_url changes
- Shows warning when enable “wp_gallery_custom_links” plugin with Themify Builder
- WordPress environment not loading properly
- Why isn’t my plugin seeing other classes?
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- Contact Form 7: custom validation [closed]
- functions.php conditional output for a single plugin
- date function not correctly returning date
- Access to wordpress method inside of classes
- Single dash converted to double dash
- How use Dynamic hyperlink on each wordpress post?
- How to declare this function correctly?
- WordPress: code structure
- Can’t modify plugin function
- PHP if url extension action=discussion condition use [closed]
- How to disable plugin capability : “create new category”
- WP-DBManager Plugin Can’t Find Mysql Path
- Option value not getting updated until page refresh in WordPress
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode