• Resolved kskerp

    (@kskerp)


    When navigation menu items are created and saved, which php file is responsible for this?

    When I create menu items, I am able to enter a URL / “Link Text” (which usually is the name the menu will display). I am concerned with the file that takes the url / “Link Text” and stores them.

    I have been searching through the plugin files and have no been able to locate it. I believe I have skipped over it and was just curious if someone could lead me in the right direction.

    http://wordpress.org/plugins/bu-navigation/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Mike Burns

    (@mgburns)

    The navigation links are saved in admin/manager.php. There are two methods in the BU_Navigation_Admin_Manager class — process_insertions and process_updates that persist link data to posts / postmeta tables.

    What are you trying to do? I’d advise against editing plugin code directly — if there is an action / filter that is missing that you would find useful I’d recommend filing an enhancement request via the Github repository.

    Thread Starter kskerp

    (@kskerp)

    basically if you are using this plugin in connection with the Namaste lms plugin. assignments are unable to be created into navigation links considering they require a unique student_id and lesson_id that is unique to each logged in student (that Namaste assigns).

    I am going to add a file from the Namaste that will be extended in the bu navigation in order to obtain these values. this way I can create an assignment navigation menu link. I would have to create a check that if the url = “assignment-blah blah” (something unique that the admin manually assigns on creation of a menu item) the bu navigation file will read it know that this is that unique case and change the url to the actual url with the student_id and lesson_id properly added.

    I am sorry if this does not make a lot of sense. the code I am adding should only amend a url if it is equal to the checker url.

    Thread Starter kskerp

    (@kskerp)

    disregard I got this working.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bu navigation menu question’ is closed to new replies.