You certainly could define those values as PHP constants and/or global variables in, for instance, functions.php.
I understand you would, at this point, rather go with a “file based approach” than using the database, but nonetheless, I have to mention that that would be both the standard as well as the best way of doing things.
Have a look at the WordPress Options API.
I haven’t quite understood whether you’re developing a plugin or a theme (you’ve tagged the question plugin-development, but in the question itself you speak of your theme’s files).
At any rate, options would be the way to go.
Related Posts:
- WordPress plugin from own server
- How to avoid plugin name conflicts from the upgrade notifier?
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- Customizing subject in comment notification e-mails
- Avoiding plugin name collisions with WP updater
- Using standard backend elements in Plugin
- Plugin development: how to create a form and get custom data?
- Security error WP 4.0 + WP phpBB Bridge [closed]
- How to list the Hooks and order of execution in current loading page? [duplicate]
- How to make my plugin theme-independent?
- Execute a function using ajax
- Updating post meta for custom post types
- How to bulk send emails
- How to handle the Plugin Version on Update using Tortoise SVN and the worpdress.org Plugin Repository?
- Custom Shipping method not showing in checkout
- REST-API: extend media-endpoint
- How can I create a simple interface for my WP plugin?
- Where to put my global functions?
- Hidden Custom Post Type
- The Point of Using apply_filters()
- Where does WordPress register default scripts like jQuery?
- Adding Attachment Display Settings in custom media frame
- How to include code into functions.php file via a plugin
- Is it possible to enqueue CSS files from plugin before theme’s CSS files?
- Determine Registered Admin Menus
- My plugin wants to update another plugin
- Help With MySQL to WPDB Query Conversion
- code is working properly in Core PHP but writing coding in WordPress
- Using SVN to upload plugin created with gutenberg blocks
- Force quit running background job
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- Custom plugin init action causing general slowness
- Check if plugin exists/active “class_exists()” does not work on plugin territory
- How to get the permanent link in a plugin?
- Duplicate results are displayed in a custom plugin [closed]
- Disable Individual Plugins (specifically in Custom Post Types) on a per-post basis?
- custom uploader in the admin area
- Best/Correct way to add an option to a category
- Basic question about accessing scripts in my plugin
- Automatically download, install and activate plugins that my plugin depends, how?
- I receive taxonomy id
- Loop in elementor custom widget not working
- WordPress SVN UTF-8 issue
- Error with get_price (and others) in self-written plugin to show price
- Asynchronous request in wordpress
- How to access OOP plugin function inside themes or other plugin
- change or add css to theme from plugin
- WordPress Widget Not Saving Instance
- Issue with wp_handle_upload
- Displaying data from another database
- Every time I de-activate a custom plugin, the site encounters a critical error
- Different registration form for different roles
- Custom Fields for Page Edits
- How do I remove all traces of a plugin?
- Is it possible/advisable to set last stable version to previous version?
- How to make sure settings are not lost when plugin is updated?
- How Can i import plugin option?
- How to solve conflict with scripts?
- How to override any plugin file in the child theme
- How can replace this url
- Access “wp site health info” data from plugin
- WordPress Frontend Page using Plugin
- How to overwrite a plugin?
- How can I translate something in my class constructor of my plugin in WordPress?
- Define global variable in theme file and call that variable in plugin file
- SimpleXML is not working with xml response from external api
- Custom Plugin Update
- How do I stop plugins and themes from getting updated in a new plugin?
- Custom wp_list_tables redirect on specfic page
- Hook to display element as product on category page
- Missing files in enqueue actions causes WordPress to reload
- I can’t use WP_Query
- Adding/ Removing actions for plugins
- Get input form data posted by users
- plugin not hooking to my custom hook
- Populate select option with JSON file
- WP Plugin: Print javascript in header
- wp_verify_nonce fails always
- Custom Plugin: Point to `template_directory`
- Adding list of Indexes in wordpress document
- API Functions to Register and Show WordPress List Tables
- How to save default values into an option and delete those upon actvation and deactivation in wordpress?
- How to Add Jquery FullCalendar in wp plugin in admin
- Plugin options not appearing on options page using tabbed navigation
- Ajax, jQuery and WordPress
- Add custom fields in the new and edit the site forms without touching the WP core
- Extend WordPress REST API with Scheme Pro Plugin
- How to submit the custom form data in database in WordPress without plugin?
- Unable to show 4 products in a row
- map urls to plugins
- WordPress check box unchecked on null value ternary operator [plugin development]
- Embed php code in custom field of a plugin [closed]
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- Function not being called on form submit, only blank admin-post.php page
- How do I set register_meta for a specific CPT?
- How to Enfroce Domain Licensing Limits? [closed]
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How to give specific class name to category in wordpress with code snippets
- Submitting form to admin-post.php WordPress