Wordpress plugin: How to depend on other plugins?


Tags: css,wordpress,twitter-bootstrap,plugins

Problem :

I am writing a simple plugin for wordpress (actually a widget, packaged as a plugin, because reasons). I am using bootstrap to style the widget, because reasons. Now, the problem is that should I include bootstrap along the plugin or depend on another plugin (for example https://wordpress.org/plugins/wordpress-bootstrap-css/). The first is easy, but not too nice way to do it. The second I actually have no idea going about. I have found some plugins (such as Plugin-Dependecies) that could be used for it, but I'd like to do it without the meta-plugin.

Is there a way for a plugin to depend on another plugin out-of-the-box? If yes, how should I do it?

Or if there is a better way to do the styling, what would that be?

Thanks in advance.



Solution :

Look at this WordPress Plugin Dependencies. It may help you.


    CSS Howto..

    CSS: how do I force contents in a table cell to stay on one line when browser size reduced

    How to style an asp.net menu with CSS

    How to use numbers from a js file in the css sheet?

    How to make the hover attributes stays when it is clicked/active?

    How to change an image onclick while li on current status using pure CSS?

    how to indent html output using CSS

    How to target the href to div

    How to do something like border-top-left-color. [CSS]

    How to dim an image keeping transparency untouched with CSS or JS?

    How to get value of input using Jquery and put it in css of an element

    Given an image button with borders how to stretch/repeat middle part in CSS for variable length content?

    How to add padding to 100% div in Bootstrap?

    Box-shadow is not showing or z-index

    How to give css class to the OK button of dialog in JQuery?

    How do I put a box around my Flot graph?

    How to I have a within a
  • align to the right side of the
  • How to improve page loading which includes css and jquery files

    Show outlines around divs in a web-based HTML editor, a la Dreamweaver and other editors

    How erase extra black on drop down menu

    how to position radio button outside of a block with css

    How make text before ul to come in single line in html?

    how to bind newly created html element to its css

    How to adjust width of right-aligned navbar

    How to “zoom”/“scale” in div's content with css or jquery?

    (CSS) How to Shorten CSS code

    how to apply css property to my first div class only

    How to set a box on bottom of a box?

    How to embed link HTML into CSS file for menus?

    How to let DOM elements stack and overflow horizontally instead of vertically in HTML?

    How to group elements based on same specific css attribute using java script or jQuery?