{"action":"created","issue":{"url":"https://api.github.com/repos/soderlind/acf-field-date-time-picker/issues/92","repository_url":"https://api.github.com/repos/soderlind/acf-field-date-time-picker","labels_url":"https://api.github.com/repos/soderlind/acf-field-date-time-picker/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/soderlind/acf-field-date-time-picker/issues/92/comments","events_url":"https://api.github.com/repos/soderlind/acf-field-date-time-picker/issues/92/events","html_url":"https://github.com/soderlind/acf-field-date-time-picker/issues/92","id":93125412,"number":92,"title":"Can't include in plugin","user":{"login":"joshuaiz","id":1096738,"avatar_url":"https://avatars.githubusercontent.com/u/1096738?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuaiz","html_url":"https://github.com/joshuaiz","followers_url":"https://api.github.com/users/joshuaiz/followers","following_url":"https://api.github.com/users/joshuaiz/following{/other_user}","gists_url":"https://api.github.com/users/joshuaiz/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuaiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuaiz/subscriptions","organizations_url":"https://api.github.com/users/joshuaiz/orgs","repos_url":"https://api.github.com/users/joshuaiz/repos","events_url":"https://api.github.com/users/joshuaiz/events{/privacy}","received_events_url":"https://api.github.com/users/joshuaiz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-05T16:45:14Z","updated_at":"2016-05-19T20:04:58Z","closed_at":null,"body":"Hello,\r\n\r\nI'm using the date time picker in a plugin and using your include function is not working.\r\n\r\nI've included acf in the plugin in a subdirectory of my plugin folder: '/acf/'\r\n\r\nThen using your code in my main plugin file:\r\n\r\n     add_action('acf/register_fields', 'my_register_fields');\r\n\r\n     function my_register_fields()\r\n     {\r\n          include_once( plugin_dir_path(__FILE__) . '/acf/acf-date_time_picker/acf-date_time_picker.php');\r\n     }\r\n\r\nI've also tried using the action hook: 'acf/include_fields' but no joy. Even using an explicit url to the file does not include it. Are you sure all the functions are correct for ACF v5?\r\n\r\nIf I place the plugin in the plugins directory and activate it it works as normal but obviously it is not ideal to require plugin users to download and install a separate plugin.\r\n\r\nWould love to get this included properly. Am I doing something wrong?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/soderlind/acf-field-date-time-picker/issues/comments/220436751","html_url":"https://github.com/soderlind/acf-field-date-time-picker/issues/92#issuecomment-220436751","issue_url":"https://api.github.com/repos/soderlind/acf-field-date-time-picker/issues/92","id":220436751,"user":{"login":"yratof","id":1001935,"avatar_url":"https://avatars.githubusercontent.com/u/1001935?v=3","gravatar_id":"","url":"https://api.github.com/users/yratof","html_url":"https://github.com/yratof","followers_url":"https://api.github.com/users/yratof/followers","following_url":"https://api.github.com/users/yratof/following{/other_user}","gists_url":"https://api.github.com/users/yratof/gists{/gist_id}","starred_url":"https://api.github.com/users/yratof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yratof/subscriptions","organizations_url":"https://api.github.com/users/yratof/orgs","repos_url":"https://api.github.com/users/yratof/repos","events_url":"https://api.github.com/users/yratof/events{/privacy}","received_events_url":"https://api.github.com/users/yratof/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T20:04:58Z","updated_at":"2016-05-19T20:04:58Z","body":"If you're using ACF5 @chimeno @cristiancs, the documentation is wrong. You need to replace `acf/register_fields` with `acf/include_field_types`\r\n\r\nYou should end up with something like this:\r\n\r\n    add_action('acf/include_field_types', 'acf_date_time');\r\n    function acf_date_time() {\r\n      include_once( plugin_dir_path(__FILE__) . '/acf/acf-date_time_picker/acf-date_time_picker.php');\r\n    }    "}}