Advertisement
ruudl

Untitled

Mar 23rd, 2021 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. public function mb_relationships_init() {
  2.  
  3. MB_Relationships_API::register(
  4. [
  5. 'id' => 'words_to_words_synonyms',
  6. 'from' => [
  7. 'object_type' => 'post',
  8. 'post_type' => 'word',
  9. 'admin_column' => [
  10. 'title' => 'Synonyms',
  11. 'link' => 'edit',
  12. ],
  13. 'meta_box' => [
  14. 'title' => 'Synonyms / Connected words (same part of speech)',
  15. ],
  16. ],
  17. 'to' => 'word',
  18. 'reciprocal' => true
  19. ] );
  20.  
  21. MB_Relationships_API::register(
  22. [
  23. 'id' => 'words_to_words_related',
  24. 'from' => [
  25. 'object_type' => 'post',
  26. 'post_type' => 'word',
  27. 'admin_column' => [
  28. 'title' => 'Related',
  29. 'link' => 'edit',
  30. ],
  31. 'meta_box' => [
  32. 'title' => 'Related / Connected words (different parts of speech)',
  33. ],
  34. ],
  35. 'to' => 'word',
  36. 'reciprocal' => true
  37. ] );
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement