# I am trying to create a plugin in my WP local and it does not appear in the plugin installed

**URL:** <https://community.localwp.com/t/i-am-trying-to-create-a-plugin-in-my-wp-local-and-it-does-not-appear-in-the-plugin-installed/45224>\
**Category:** Support\
**Tags:** windows-10\
**Created:** [October 25, 2024, 11:13am UTC](https://community.localwp.com/t/i-am-trying-to-create-a-plugin-in-my-wp-local-and-it-does-not-appear-in-the-plugin-installed/45224 "2024-10-25T11:13:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberto1981](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Alberto1981](https://community.localwp.com/u/Alberto1981)\
**Post date:** [October 25, 2024, 11:13am UTC](https://community.localwp.com/t/i-am-trying-to-create-a-plugin-in-my-wp-local-and-it-does-not-appear-in-the-plugin-installed/45224/1 "2024-10-25T11:13:39Z")

</div>

### What issue or error are you experiencing?

I am trying to build a custom menu (I called it Best Menu).  
I have already tried several troubleshooting steps:

1. **Check the Plugin Header Information**

Make sure that the plugin header information in your `3d-interactive-menu.php` file is correctly formatted. It should look like this:

php

Copia codice

```auto
<?php
/**
 * Plugin Name: Best Menu
 * Plugin URI: http://example.com
 * Description: A custom menu plugin for WordPress.
 * Version: 1.0
 * Author: Your Name
 * Author URI: http://example.com
 * License: GPL2
 */

```

Ensure that there are no typos, and the spacing is correct.

1. **File Permissions**

Check the file permissions of the plugin folder and files. On Windows, make sure that:

- The plugin folder (`Best Menu`) and the PHP files inside it are not marked as “Read-Only.”
- You have the necessary permissions to read and execute the files.

1. **Check for Errors in `wp-content/debug.log`**

Since you have enabled debugging in your `wp-config.php`, check the `debug.log` file in the `wp-content` directory. Look for any errors related to plugin loading, which might give clues about what’s going wrong.

1. **Plugin Folder Structure**

Double-check that your plugin is located correctly:

- The structure should be:

css

Copia codice

```auto
wp-content/
    plugins/
        Best Menu/
            3d-interactive-menu.php
            (any other necessary files)

```

- Make sure that the `Best Menu` folder name matches exactly with what you have referenced in WordPress (case-sensitive).

1. **WordPress Version Compatibility**

While you’re using WordPress 6.6.2, ensure your plugin code is compatible with this version. If you are using any deprecated functions or code, it could cause the plugin not to load.

1. **PHP Installation**

Even though your LocalWP installation includes PHP, if there are global path issues with PHP on your system, it can lead to unexpected behavior. While LocalWP should manage this, you can try checking your PHP installation:

- **Check PHP in LocalWP** : Go to LocalWP \> Site \> Overview \> Check the PHP version used by your local site.
- If it’s not configured, you may need to check LocalWP’s settings or reinstall it if necessary.

1. **Clear Cache**

If you’re using any caching mechanism or if your browser is caching the dashboard, try:

- Clearing your browser cache.
- If you have a caching plugin active, clear its cache.

1. **Manual Activation**

If everything seems fine but the plugin still doesn’t appear:

- Temporarily rename the `3d-interactive-menu.php` file to `index.php` and see if it appears.
- Rename the `Best Menu` folder to something else (e.g., `Best-Menu-Test`) and check if it appears in the plugins list.

1. **Try with a Minimal Plugin**

As a last resort, create a minimal plugin to check if it appears. Create a new folder, say `Test Plugin`, and inside it, create a file named `test-plugin.php` with the following content:

php

Copia codice

```auto
<?php
/**
 * Plugin Name: Test Plugin
 * Description: A test plugin to check if it appears.
 * Version: 1.0
 * Author: Your Name
 */

function test_plugin_function() {
    error_log('Test Plugin Loaded.');
}
add_action('init', 'test_plugin_function');

```

* * *

I really don’t know what else I can do to sort it out. Do you have any solution?

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [October 25, 2024, 3:58pm UTC](https://community.localwp.com/t/i-am-trying-to-create-a-plugin-in-my-wp-local-and-it-does-not-appear-in-the-plugin-installed/45224/2 "2024-10-25T15:58:53Z")

</div>

I don’t believe “Best Menu” can have spaces and the accepted format is all lowercase. I would change to “best-menu”.

FWIW this isn’t really an issue with Local.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 28, 2024, 1:25pm UTC](https://community.localwp.com/t/i-am-trying-to-create-a-plugin-in-my-wp-local-and-it-does-not-appear-in-the-plugin-installed/45224/3 "2024-10-28T13:25:24Z")

</div>

Thank you @afragen! 💚

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [January 26, 2025, 1:25pm UTC](https://community.localwp.com/t/i-am-trying-to-create-a-plugin-in-my-wp-local-and-it-does-not-appear-in-the-plugin-installed/45224/4 "2025-01-26T13:25:51Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
