WordPress.org

Ready to get started?Download WordPress

Forums

Table of content
Love this useful plugin - but I made one change (3 posts)

5 stars
  1. MakerBlock
    Member
    Posted 6 months ago #

    This is a really great plugin and creates a useful, easily navigable Table of Contents for use on any site. However, I prefer not to have plugins creating top level menus in WordPress. I changed line 515 in the "core.php" file from:
    add_object_page('SL Plugins', 'SL Plugins', 'activate_plugins', $topLevel, array($this,'sedlex_information'));

    to:

    add_options_page('SL Plugins', 'SL Plugins', 'activate_plugins', 'sl-plugins', array($this,'sedlex_information'));

    This small change adds the plugin's menu structure under the Settings tab, where it belongs.
    Thanks again for your hard work on this great plugin. Would you consider making this change to the core?
    Regards,
    MakerBlock

  2. Sed Lex
    Member
    Plugin Author

    Posted 6 months ago #

    Thank you ...

    Actually, I understand your point.
    Nevertheless I have also other plugins that give a result to the admin in that page (for instance, plagiary-search provide the number of plagiary found or formatting-corrected that provides the number of formatting issue in posts...
    It not only settings but they are also tools: it does not consistent to put them in settings ...
    In addition, I consider that splitting a plugin in a plurality of page (ie settings, results, cron) is confusing and I try to render a plugin accessible throught a single page

    I could try to figure a way to make it customizable but could take some time as I am not a professional and I do it on my spare time

    Regards

  3. MakerBlock
    Member
    Posted 6 months ago #

    @Sed Lex,
    I totally get why you did this - I actually create top-level menus for plugins of my own internal use.
    Thanks again for the excellent work on this plugin. :)
    MakerBlock

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.