Skip to content

Instantly share code, notes, and snippets.

View viruthagiri's full-sized avatar

Viruthagiri Thirumavalavan viruthagiri

  • Bangalore, India
View GitHub Profile
@viruthagiri
viruthagiri / wp-front-end-post-submit.php
Created February 15, 2012 18:48 — forked from jhaus/wp-front-end-post-submit.php
basic wordpress template for front end posting via wordpress.stackexchange.com
<?php
$postTitle = $_POST['post_title'];
$post = $_POST['post'];
$submit = $_POST['submit'];
if(isset($submit)){
global $user_ID;
$new_post = array(
@viruthagiri
viruthagiri / sample_plugin.php
Created February 15, 2012 18:53 — forked from sbressler/sample_plugin.php
Sample plugin to demonstrate the basics of WordPress actions and filters, as well as storing plugin settings
<?php
/*
Plugin Name: Sample Plugin
Plugin URI: http://www.scottbressler.com/blog/plugins/
Description: Sample plugin to demonstrate the basics of WordPress actions and filters, as well as storing plugin settings. This plugin adds content to the end of posts. This can be achieved when publishing the post or each time the post is displayed, as specified by the plugin's settings. The text appended is also specified in the settings.
Version: 1.1
Author: Scott Bressler
Author URI: http://www.scottbressler.com/blog/
License: GPL2
*/
@viruthagiri
viruthagiri / post-process.php
Created February 15, 2012 18:54 — forked from bueltge/post-process.php
WordPress Custom Post Type: Insert post via Frontend
<?php
/**
* post-process.php
* make sure to include post-process.php in your functions.php. Use this in functions.php:
*
* get_template_part('post-process');
*
*/
function do_insert() {
if( 'POST' == $_SERVER['REQUEST_METHOD']
@viruthagiri
viruthagiri / functions.php
Created February 15, 2012 18:57
My super duper WordPress functions.php
<?php
/**
* Base functions.php for WordPress themes
*
* @package WordPress 3.3
* @author Andres Hermosilla
*/
/**
@viruthagiri
viruthagiri / get_ram_in_footer.php
Created February 16, 2012 21:32 — forked from bueltge/get_ram_in_footer.php
WordPress Plugin to list used and standing ready RAM and SQL Queries in Admin-Footer
@viruthagiri
viruthagiri / WordCamp Vegas Plugability
Created February 16, 2012 21:33 — forked from thefrosty/WordCamp Vegas Plugability
Core functionality plugin.
<?php
/**
* Plugin Name: PluginName
* Plugin URI: http://austinpassy.com/wordpress-plugins/
* Description: Core functionality for __________
* Version: 1.0.0
* Author: Austin Passy
* Author URI: http://austinpassy.com/
*
* @copyright 2012
@viruthagiri
viruthagiri / wp_plugin_stub.php
Created February 16, 2012 21:36 — forked from mattwiebe/wp_plugin_stub.php
A good starting place for a static class-based WordPress plugin
<?php
/*
Plugin Name: A Plugin Name
Plugin URI: http://somadesign.ca/
Description: Be descriptive.
Version: 0.1
Author: Soma Design
Author URI: http://somadesign.ca/
License: GPL v2
@viruthagiri
viruthagiri / myplugin.php
Created February 16, 2012 21:36 — forked from jasonrhodes/myplugin.php
A simple plugin to properly include css and javascript files into a WordPress site. * -(these files won't be minified and concatenated unless you use WP Total Cache or something similar.)
<?php
/**
* @package MyPlugin
* @version 1.0
*
* Plugin Name: MyPlugin
* Plugin URI: http://myurl.com/myplugin
* Description: A simple plugin to properly include css and javascript files into a WordPress site.
* -(these files won't be minified and concatenated unless you use WP Total Cache or something similar.)
* Author: Jason Rhodes
@viruthagiri
viruthagiri / future_core_login.php
Created February 16, 2012 21:41 — forked from soundslikeinfo/future_core_login.php
A WordPress plugin to build an environment to develop a single stylesheet for the login/reg/pass screen in WP 3.1
<?php
/**
* Plugin Name: Future Core Login
* Plugin URI: http://unserkaiser.com
* Description: Replacing the current stylesheets loaded on wp-login.php until this ticket goes into core: <a href="http://core.trac.wordpress.org/ticket/12506">#12506</a>
* Version: 0.1
* Author: Franz Josef Kaiser
* Author URI: http://unserkaiser.com
* License: GPL2
*
@viruthagiri
viruthagiri / test-head-footer.php
Created February 16, 2012 21:42 — forked from sivel/test-head-footer.php
WordPress Plugin to test for the existence and functionality of wp_head and wp_footer in the active theme