File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636
3737// Initialize plugin - Change to use your own namespace
3838new \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));
You can’t perform that action at this time.
0 commit comments