Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- acf_add_options_sub_page('txt Importer');
- acf_add_local_field_group([
- 'key' => 'txt Importer Field Group',
- 'title' => 'txt Importer',
- 'style' => 'seamless',
- 'fields' => [
- [
- 'label' => '',
- 'key' => 'field_instructions',
- 'name' => 'instructions',
- 'type' => 'message',
- 'message' => "test",
- ],
- [
- 'label' => 'FTP directory',
- 'key' => 'field_txt-dir',
- 'name' => 'txt-dir',
- 'type' => 'text',
- 'instructions' => 'Include a leading slash and trailing slash. Eg. /home/myproject/public_html/example/'
- ],
- [
- 'label' => 'Import data',
- 'key' => 'field_import-btn',
- 'name' => 'import-btn',
- 'type' => 'message',
- 'message' => get_wp_admin_btn_markup('Import', 'cti-import-btn'),
- 'instructions' => ''
- ],
- ],
- 'location' => [
- [
- [
- 'param' => 'options_page',
- 'operator' => '==',
- 'value' => 'acf-options-txt-importer',
- ],
- ],
- ]
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement