WordPress.org

Ideas

Child Plugins

  1. Jan Dembowski
    Inactive

    The solution for plugins is really simple. Ask the plugin author to make their plugin hookable via actions or filters.

    Filters get my vote BTW.

    https://codex.wordpress.org/Plugin_API#Create_a_Filter_Function

    Their really easy to implement and by doing that the plugin output can be easily modified or outright changed.

    Posted: 3 years ago #
  2. VincentLB77
    Member

    Hi, I'm looking forward to use a plugin child only to modify the HTML that the plugin creates.
    I could modify directly the .php and prevent the plugin for updating but i'd like to know if there is a cleaner option.

    I'v red Hinnerk Altenburg solution that looks great cause created from a WooCommerce option i had used and felt it was a WP core option but i can't figure his example code out, there is nothing like the wordpress pluggin folder in it and i'm not a great dev just a Tweaker.

    So any news or help on plugin child ?

    Posted: 2 years ago #
  3. Even a child plugin wouldn't help you there, since the HTML may require you to fully edit and replace a whole function.

    Have you asked the plugin dev about putting in options?

    Posted: 2 years ago #
  4. VincentLB77
    Member

    Well i thought a child plugin would just replace one file with another i modified??

    BTW i did modify directly the plugin and blocked the plugin update, it's dirty but it's a small plugin and i did just change the html it creates.
    I guess that even with a child the update would have mess everything.

    Posted: 2 years ago #
  5. Indeed. A child theme works because there is little code being replaced, just templates. A plugin would replace both.

    But again, that's why you ask the plugin developer about possibly adding in features or options or filters :) so you can override smartly.

    Edits to the plugin, even with disabling updates, is not smart.

    Posted: 2 years ago #
  6. VincentLB77
    Member

    Cause i only did some small modifications to the html, invert some div, add some classes to fit my html and the plugin working with shortcodes would'nt allow this.

    Posted: 2 years ago #
  7. Yes, which is why you ASK the developer if it's possible to allow you to invert the div via a filter :) Or if it's possible to add a class so you can override it with your own CSS.

    Does that make sense?

    Posted: 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    54 Votes
  • Status

    Sorry, not right now