Yes they do, the more interesting question is why do you use define instead of const? Take a look here: define() vs const.
The only situation in which you should use a define over const is if you want the user to be able to override your defines in wp-config.php. Obviously things like minimum php version should not be overridable.
Once you go with const you can just use namespaces and get over the whole issue. The only problem is that const before PHP 5.6 could not be assigned an expression and you have two defines which are not simple values.
If you target PHP 5.6 and above then, in my opinion, just use const. Otherwise defines should be avoided as they can be overwritten by mistake, but it is your judgment call about using defined values instead of calling the relevant APIs.
Related Posts:
- Custom plugin: Trying to show saved data on frontend
- How to make WordPress plugin check for database changes and then do something?
- I can’t fetch query parameters ($_GET parameters) with get_query_var
- Change Password Hint
- Dynamic URL to reference custom PHP files
- Prevent multiple counts by same user – WP PostViews plugin
- How to use copy() function and paste file in /wp-content/themes directory
- Second select list values are not saved after clicking update
- Use wc_enqueue_js only on specific pages – nested add_action
- wordpress custom endpoint multiple params
- Theme url in all plugin pages
- Am I not understanding plugins?
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- How to access function from outside of a class within this class in WP plugin?
- How can i display post loop in table format?
- PHP can I add line numbers to file_get_contents()
- Add htaccess rules with insert_with_markers at beginning of htaccess
- Common abstract class for plugins
- Adding Default Settings to Theme My Login plugin
- Create onClick Event to Re-load a Widget
- Accessing the database from a plugin outside of action hooks
- Adding subdomain to home_url for “add_menu_page”
- How to select the contents in the text view textrea in wp_editor?
- Hide categories that are not used in the post type
- Automated Cart Update With Alert Box Each Time
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to sanitize any integer input field in wordpress?
- WordPress ajax doesn’t display object method on jQuery .change() function
- filter default query to show just selected level of child pages in wordpress
- How to make my custom widget appear within WordPress widgets? Plugin development
- Can’t upload image using media_sideload_image
- Adding widgets to my plugin page instead of WordPress dashboard
- How to insert data into database using wp cron job
- I want to add custom add to cart link [closed]
- Access Child Class of Plugin Main Class Instance
- Font Awesome changing default WordPress Font
- Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’) [closed]
- Download full html page with CSV export plugin
- Asynchronous multiple requests 401 Unauthorized
- Using data sent via AJAX in multiple functions on a WP plugin
- What does -> mean in WordPress?
- Change product_base programmatically
- How to add the sidebar to all the pages except the home page? [closed]
- how to save checkbox data for custom setting?
- WordPress shortcode returns the data before
- Plugin development and composer
- Set default Database Storage Engine when creating tables with plugins?
- WordPress WP_Query without query GET parameters
- Where to copy woocommerce files to in my custom theme to avoid editing the core plugin?
- custom post type with role Vendor
- Removed jQuery script from header.php , any problems?
- Execute Jquery when a specific page in my plugin is loading
- How does add_option() function enable action hooks to fire right after actiavtion?
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- WordPress can’t use ZipArchive
- Settings API form – submit with AJAX
- How to change basename url for wp-admin?
- Only the first image uploads
- WordPress loading progess – wp-blog-header.php
- Illegal string offset checkbox
- Custom plugin: how do I call a PHP file if settings option is set to true?
- Trying to use a variable to set image width
- wp_update_post gives 500 internal error
- How to identify which php file a plugin is using on page load?
- dashboard widget form not submit mails
- register_setting not save checkbox
- How to import woocommerce custom fields data into another site?
- Add a custom link to each image in WordPress gallery
- How to access this jQuery/AJAX data in a PHP file/WordPress plugin
- post_exists stops working in a scheduled event
- register dependency css and js inside a plugin class
- How does one make a URL return dynamic JSON with custom Content Type?
- How to give custom roles the capability to edit one Menu instead of every Menu
- add menu page in loop menu order
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- PHP get_category() function redeclared
- Private messaging – Getting and displaying the avatar/url of a message recipient
- I’m writing my first plugin and my echo output is showing up on every page of my wordpress installation
- wp_query (or hook) posts by date (id) in array then set post_type
- Chosen Select jquery Not Working in Plugin
- widget: input the px value from user and use it as inline style in widget function
- PHP calling function within a class
- Custom post type single page return to listing page
- Save data of select list after clicking save
- WordPress rewrite question
- Using Nonce for my Form
- Create new folder and upload files to custom folder via wp_handle_upload
- SHARING TO FACEBOOK – FROM DYNAMICALLY GENERATED PAGE
- How to hide Ads From Certain Categories?
- Custom field fetch error on woocommerce pdf invoice
- Custom taxonomy with page post type – WordPress
- Query posts by custom taxonomy slug in WP REST API?
- oneOf JSON Schema validation not properly working for custom post meta value?
- Too few arguments at registering new templates in my plugin
- I want to lists posts in wordpress to nearest location entered by the user
- Displaying custom meta box value in a custom post page
- Translate string in another langage than Locale
- Integrate a Custom Post Type with Learndash Plugin
- Remove slug of multiple custom post types with and without hierarchical
- Custom rest fields not loaded in rest api cpt response