Within the plugin’s main PHP file:
$plugin_data = get_plugin_data( __FILE__ );
$plugin_name = $plugin_data['Name'];
Related Posts:
- Custom Post Type Templates from Plugin Folder?
- How to structure a plugin
- Add multiple plugin directories
- Best Practice for Referencing the Plugin Directory
- How MUST the directory for a plugin be structured?
- How long does it take for a new plugin to be approved?
- A way to sort WordPress themes? [closed]
- How to install WordPress Multisite with different domains under the same subdirectory?
- Hosting plugin Google Code with auto update?
- register_theme_directory somehow “fails” when folder is outside of WP-Folder
- Opendir and WordPress Path
- What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory?
- Organising the plugins folder in wordpress
- Is it possible to group plugins into a folder?
- How to upload images to WP Panel keeping correct folder in FTP
- Solutions to repost categories into multisite blogs?
- A new translation folder overrides my usual translation from “nowhere”
- Installing plugins and using complex folder structure with child theme in WordPress
- Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
- How to get path or root of plugin folder, not file or dir?
- wp-mail attachment is not sent for no reason?
- Minimize and Uglify WordPress Plugin Files
- Should meta boxes for specific pages be save in their own plugins?
- Where should I store disabled plugins?
- Disable plugin visibility at the plugin directory
- How to write to the plugin’s directory?
- How to call php file in theme directory from plugin
- add menu page not showing Icon
- how to include my homepage and scc in to a plugin
- How can I upload and password protect Javadocs in WordPress?
- Can we rename a plugin directory for a already launched plugin?
- Custom Gallery plugin uploading to different dir, and post to page
- WordPress Overrides folder permissions in Cpanel
- Server Path Information
- Register additional wp plugin directory
- How can I get information on who is downloading my plugin? (new to this)
- Change weird Wp File structure
- How to Add WYSIWYG Editor (tinyMCE) to plugin options page compatible with WordPress 3.0 and up?
- Install an external plugin within the current plugin
- WooCommerce – Call to undefined function is_woocommerce()
- Run Python Script on WordPress Website
- do_action and hook methods
- WordPress with CAS+LDAP and standard WP accounts
- Easy Digital Downloads (EDD) – Purchase Receipt emails couldn’t be logged
- Does codex.wordpress.org use a plugin of some sort? If so what plugin?
- Overriding Attributes values in Shortcode Plugins
- How do you override the default comment template?
- Media upload not working on theme option in WordPress 3.8.1
- WordPress site periodically goes down
- Server configuration for WordPress – Do I need install PHP-SSH extensions for WordPress on Fedora28?
- How to remove custom post type and add category and post name
- wp_footer hook only working on homepage not in other pages
- Can I allow certain people to add/edit pages within a parent?
- Unable to select image using custom image field type
- How to use add_submenu_page() for editors?
- Determining when was the last time a plugin was activated
- My WordPress site when down after installing a plugin and now all I get is a simple white screen [closed]
- Override plugin styles via my custom theme
- Using ACF default value to autoincrement a number field
- where do I send my ajax calls
- Images under 1MB are not being compressed
- Simulating a wp page – wp page load sequence
- echo get_option in header template
- How to display all functions (hooks, filters, or custom php) used on a page inline
- Is there a counter for comments left?
- External wpdb connections in different plugins on single page
- How to add update function to plugin without adding it to https://wordpress.org/plugins/ [closed]
- 500 error when updating plugin option
- How to edit link for comment count
- Personalized Author Area
- New Variable Woocommerce product not showing variations, price, or add to cart on front end [closed]
- Integrating Custom Database with WordPress
- How do I duplicate a single wpmu site?
- Dynamic landing page – am I doing this right?
- How to add height and width to images on a page(using WP Bakery) to improve Google’s CLS score?
- how to display a template.php in a shortcode
- Woocommerce add products to cart
- I need to register and resize images, safe to delete plugin afterwards?
- Using mu-plugins on the Genesis Framework
- Is it possible to custom set query for a WordPress REST API response?
- wpdb update method is updating but not refreshing the current page data
- Plugin error “array_key_exists(): The first argument should be either a string or an integer” [closed]
- Show content from plugin on index
- Sub Categories in drop down menu
- CMB2 Post Search Field displays/repeats initial post if left empty
- User content database [closed]
- Add HTML between feed items
- Private “Parents” content for school site
- Form submit from wordpress plugin
- Can a developer adopt a plugin marked as “not updated in over 2 years”?
- disable lightbox in a plugin [closed]
- Encode URL picked up by Digg Digg
- Allow a role to edit one specific plugin
- Post curl function save twice using plugin hook function wordpress
- WP Customer Reviews call short code on another page [closed]
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- How often should I execute add_filter and function declaration in Code Snippets?
- How to change all the urls of the WordPress site?
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Ad Management Plug that can be used on a membership site