WordPress detects a file as plugin when there is a plugin header. So you can store multiple plugins in one directory, and they all will be recognized as different plugins.
Each file with at least /* Plugin Name: something */
is a plugin.
The reason is that WordPress scans all PHP files in the main directory of a plugin.
You can use any name for the plugin file. Avoid non-plugin files in the main directory. They just eat runtime. Put all other PHP files into sub-directories.
Related Posts:
- Query Posts by Custom Field ‘Price’
- Creating a WordPress admin page without a menu for a plugin
- fatal error get_page_permastruct()
- Common functionality between my own plugins
- How to pass JavaScript variable to PHP in wordpress widget?
- Unable to add admin notice on plugin activation
- How To Ignore a Filter On Applying Filter the Content In a Function
- Which functions in theme or plugin load first
- Adding Image in readme.txt file of wordpress plugin
- Saving Plugin settings to the database
- Add CSS animation as Preloader to WordPress
- Pass $this to function nested in another public function of the same class
- remove custom taxonomy metabox form custom post type
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- Correct way to use register_activation_hook
- WordPress plugin installation
- Get image URL from media library in input
- Way to hook into a sidebar call to replace it with a custom sidebar
- How could I execute my plugin just in frontend (not in backend)
- Custom height/width for thickbox in WP Backend
- add action wp_head not working
- How to trigger an action with a URL
- WP Plugin Developers – Accessing my wordpress site [closed]
- Next and/or previous post content
- How to pull code snippet from functionality plugin?
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- Best approach to fetch data from wp options to js file or php file
- Is it possible to create Custom Post plug-in?
- why doesn’t this update part of this plugin work? it take me to nothing here page
- Using a custom plugin to capture input data via Ajax and PHP
- Display post lists in 2nd paragraph
- Single API call exposed via shortcode with params
- Session destroyed on page redirect
- Is there a way to test that readme looks in other language before submitting translation?
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- Homemade plugin while using Themify Ultra
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- Can I load the textdomain before a plugin is activated?
- Create tabs in admin options page from custom post type loop
- ob_start() combined with wp_query
- WordPress get_avatar function not correct working
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Settings API saved values not getting shown in the dropdownbox
- populating a form field with output from a custom plugin function
- Can I use Symfony components in a plugin that I want to submit to the WordPress plugin repository?
- Custom Login Page — wp_signon Headers Already Sent?
- Why Does The `auto_update_plugin` Hook Disable Management?
- Is there a way to add custom endpoint to specific page only
- IF condition based on wp_remote_get output
- Add User Role: Pre-saved in User-Meta [SOLVED]
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Is there a script to collect all hooks and filters provided by a plugin?
- How WordPress core manage the plugin installation
- Why is my WordPress Plugin page requesting my FTP Login Credentials?
- Cross Sells are not being shown in Cart Page. Please Help!
- Post status doesn’t update to ‘future’ every time?
- adding custom code as a wordpress plugin
- count the number of views of a post excluding own views
- How To Create A File Archive in WordPress?
- Custom Post Type, Custom Columns List
- How to hide plugin submenu title in drop down in admin panel in wordpress?
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- How to set Google Analytics tracking code on WordPress plugin directory page?
- How to add styles to a submenu page?
- Show Custom Post on Frontend
- Problem with checked box on wp car manager plugin
- Create a link that calls our custom function in WordPress
- Update a previous version of plugin when the new plugin is built from the scratch
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Load my Inline js footer area
- Remove action added in plugin class from theme
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- Plugin json page
- WordPress Admin sub-level menu issue
- How do I add a textarea (multirow) option to my WordPress plugin?
- PHP header() not available to use in my plugin
- Passing ajax variable to more than one wordpress plugin function
- search into subcategories plugin subcategory value not come
- Why isn’t my plugin seeing other classes?
- How Can the_post Be Hooked Like the_content and the_excerpt?
- How to add jquery to my custom post type wp plugin
- Update post meta not working on wp_postmeta
- How to tell which Plugin is displaying?
- Check if user is in a group of another site within multisite network [closed]
- Redirect url in plugin to somewhere else?
- Get Core Functionality from Within a (Secondary) Plugin File
- wp_insert_post_data filter to set category
- Site is setup statically – how to make it content managable?
- is there a way I can add or remove some plugin options?
- How to provide access to specific plugin to all the user roles except subscriber in wordpress
- Output pure JSON wordpress
- What can I do to customize a widget provided with this plugin? from where have I to start?
- how to remove a rel=”nofollow” using call to action plugin
- Create Custom Coupon Type
- Is it possible to create post in wordpress using postman?
- WordPress custom block: Link saved in database not retrieved when editing post
- Accessing Correct Database to Create REST API Endpoint
- Detect if user is on the specific page in WordPress
- A multi-section WordPress store [closed]