treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Wordpress: Embed a Plugin to a theme

  • Hello guys, Am developing a free Wordpress theme, and i want to make an already existing responsive image slider plugin a part of the theme such that when the theme is installed and activated, the slider plugin is automatically activated as well.

    I don't want to develop an image slider from scratch for two reasons

    1. very good ones already exists
      
    2. since its a free theme, i may not have all the time to provide world class support, so i'd prefer to use something made and regularly update by someone else
      
  • ask people to install it themselves. put it on readme file.

    i don't know if it is possible to activate plugin when activating your theme.

    but i know you can call function when activating theme . check add_action or register_activation_hook etc.

    maybe call plugin's function when activating theme?