Support » Plugins and Hacks » Hacks » How to create a plugin to add a little snippet to function.php?

  • Resolved Hardeep Asrani

    (@hardeepasrani)


    Support Team Volunteer

    Hey, I’m new to WP and trying to create a simple plugin. Can you explain how to create a simple plugin which adds just a little snippet to blog’s function.php file. For example I want to add this simple snippet to function.php (just for example)

    add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );

    Can you post full php structure of it (without header information). It would be great, please I’m new to WP and php and trying to learn some basic things 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to create a plugin to add a little snippet to function.php?’ is closed to new replies.