Skip to content

Commit e3bd020

Browse files
committed
Added 'plugin_file' to settings
1 parent 864a356 commit e3bd020

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

wordpress-base-plugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636

3737
// Initialize plugin - Change to use your own namespace
3838
new \VendorName\MyPlugin\Plugin(array(
39-
'data' => get_plugin_data(__FILE__),
40-
'path' => realpath(plugin_dir_path(__FILE__)).DIRECTORY_SEPARATOR,
41-
'url' => plugin_dir_url(__FILE__),
42-
'textdomain' => 'my-plugin',
39+
'data' => get_plugin_data( __FILE__ ),
40+
'path' => realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR,
41+
'url' => plugin_dir_url( __FILE__ ),
4342
'object_cache_group' => 'my_plugin_cache',
4443
'object_cache_expire' => 72, // In hours
45-
'deps' => array('php' => '5.4.0', 'carbon_fields' => '2.0.0'), // Optional
44+
'deps' => array( 'php' => '5.4.0', 'carbon_fields' => '2.0.0' ),
45+
'plugin_file' => plugin_basename( __FILE__ ),
4646
'prefix' => 'myplugin_' // Change to your own unique field prefix
4747
));

0 commit comments

Comments
 (0)