Advertisement
Guest User

field frameworks

a guest
Sep 20th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. add_action('init', 'my_init_function');
  2.  
  3. function my_init_function() {
  4. /* Make sure the plugin is installed and active */
  5. if(!defined('FF_INSTALLED')) {
  6. return;
  7. }
  8.  
  9. ff_create_section('Sections Post', 'post', array(
  10. 'id' => 'links',
  11. 'title' => 'Links',
  12. 'post_types' => array('page'),
  13. 'hide_content_editor' => false,
  14. )
  15. );
  16.  
  17. ff_create_field('group uid', 'group', array(
  18. 'id' => 'Links',
  19. 'label' => 'Etichetta',
  20. 'minimal' => false,
  21. 'repeatable' => true,
  22. )
  23. );
  24.  
  25. ff_add_field_to_field_group('group uid', 'group uid');
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement