Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

hardeepasrani on "How to create a plugin to add a little snippet to function.php?"

$
0
0

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 all articles
Browse latest Browse all 26892

Trending Articles