This code below should work if you add it to your functions.php
in your theme:
add_filter( 'editable_extensions', function ( $default_types ) {
$default_types[] = 'ini';
return $default_types;
} );
Assumptions:
- You’re using at least PHP 5.3
- You’re using at least WordPress 4.9
Related Posts:
- How can I add an option to the Page Template list from a Plugin?
- What’s the best method for emptying an option created with the Settings API?
- template_include (overriding default plugin templates via current theme)
- Using composer for dependency management in plugindevelopment
- What is nonce and how to use it with Ajax in WordPress? [duplicate]
- Update exisiting site to 3.5 release candidate
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- Build path for a custom portfolio plugin
- How to save block attributes when the output doesn’t change
- add_filter and remove_filter added before and after wp_query
- What is the difference between strip_tags and wp_filter_nohtml_kses?
- How can I hook into existing WordPress Bulk actions?
- Scheduled event does not run at midnight
- WordPress Media mime type filter problem 4.0
- creating elements/innerblocks via rangecontrol
- How to check if current static page is frontpage from admin plugin
- Woocommerce add custom button to backend order table
- Converting theme widgets to plugins?
- Sample — test — data for large WordPress install
- Earliest WP Hook to Safely and Reliably Redirect
- What is rich_editing?
- How Can I setup WP CLI on Windows development machine running AMPPS?
- WP_LOCALIZE_SCRIPT doesn’t work
- How can I display an error message after post has been saved?
- What method to use to call a REST API?
- Is it possible to delay execution of shortcode output callback?
- Why my database table not created on activation?
- wp_enqueue_script + wp_enqueue_style Since When
- Resizing Images for a Gallery-Plugin?
- Which themes do you use to test compatibilities with your plugin [closed]
- How to debug a unit test for a WordPress plugin, which uses wordpress-test?
- Is there any way to allow a plugin to write over a previous version?
- How do i validate data entered in a meta box so that only floats can be entered in a field?
- Adding functions to hooks from within a class
- Modify users.php page to create page/post on button clicked
- What filters to call to modify the output of the entire page?
- get_current_screen() return null
- Frontend language per user
- Tried in different ways but sidebar not working?
- How to Create a Simple Related Posts Plugin
- How to run a function on plugin’s options page?
- What stylesheets are available in core?
- Help With Rewrite_Rules For a Custom Plug-In
- Theme Install using a Custom Repository
- How to add plugin version update option in plugin row action?
- Activate User in Code (BuddyPress+bbpress)
- wp_filesystem put_contents issue with owner/group
- error ‘The package could not be installed. No valid plugins were found.’
- Search: how to extend the existing search to include a custom table
- Plugin development: delete options when updating to a new version
- Is there documentation reference for forms in menu and setting pages?
- Custom code for WordPress dynamic menu
- Gutenberg table block with Bootstrap .table class
- Translate MCE button text/tooltip in custom plugin
- wpdb->prepare and mysql UPDATE – how is it done?
- Can’t change the style of a submit input type? [closed]
- How to get all queries’s results after they have executed?
- How can I create a custom plugin that allows anonymous users to signup without registering?
- why update option is not working?
- ECHO Executing 4 Times In Head
- WP: Search and replace in DB programmatically
- How to silent ‘Attempting a database schema change is discouraged.’?
- wp_schedule_event custom event time
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- How add default term meta to prevent an error?
- How to get current logged-in user details in multisite?
- Get images / media attached to a page by page ID
- Data inserted by wpdb insert is different than data pressnt in database.
- How to create two custom post types when plugin is activated?
- Plugin admin page stylesheet doesn’t work
- Why is $_POST empty when saving custom Meta Box?
- update_option() passing empty array() but still updating
- Bad request 400 using class based files
- Redirection from a specific page for users logged in but not with membership
- Load script on frontend from widget plugin
- Can’t get wpColorPicker to work in a widget
- Get the current post/page URL with plain permalinks
- ajax multiple Values
- WordPress Plugin Update Process
- Ajax functionality not being called under wordpress plugin
- Registration form Plugin… Email confirmation
- Add a description/hint field in the admin page of a plugin
- Saving multiple fields as array
- Serialized Data
- Can’t add images in wordpress to my page – button isn’t clickable
- Gutenberg and custom blocks messed up pagespeed score. What did I wrong?
- Gutenberg text field validation
- I don’t understand how symlinks in plugin work
- Undo operation not working in Rich text [Gutenberg]
- Build a dynamic block using the default attributes
- How to display .ptm file in my WP site without JAVA
- Bulk post approval and publishing doesn’t work
- Show Admin Menu
- How to replace content of a block in and re-render on change?
- extending a core block doesn’t work inside the editor
- register_activation_hook doesn’t execute without add_action(‘init’,’some-function’)
- Getting similar posts by custom field value
- Does WP REST API cache internally executed (rest_do_request) requests?
- Trouble Importing whatsapp-web.js in a WordPress Plugin Development
- ‘useSate’ error when using React on the frontend in custom block plugin