This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Handles most of the work. | |
* | |
* @package GSA for WordPress Multisite | |
* @author Simon Wheatley | |
**/ | |
class GSAForWPMS extends GSAForWPMS_Plugin { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url.rewrite-once = ( | |
"^/(.*/)?files/$" => "/index.php", | |
"^/(.*/)?files/(.*)" => "/wp-content/blogs.php?file=$2", | |
"^(/wp-admin/.*)" => "$1", | |
"^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "/$2", | |
"^/([_0-9a-zA-Z-]+/)?(.*\.php)" => "/$2", | |
"^/(.*)/?$" => "/index.php" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* TC Framework Base | |
* | |
* This is an abstract class that creates a standard base for all TC projects. | |
* | |
* All options are stored under two WordPress options, one for the standard options | |
* and another for the multisite options (if the theme/plugin has need for these). | |
* | |
* @author Amereservant <[email protected]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// add the following to your functions file or similar | |
define( 'FUBLO_GF_PROFILE', 1 ); // define the ID number of your profile form. | |
// ============================================================= PROFILE EDITING | |
/** | |
* These are the user metadata fields, with their names and the data about them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$postTitle = $_POST['post_title']; | |
$post = $_POST['post']; | |
$submit = $_POST['submit']; | |
if(isset($submit)){ | |
global $user_ID; | |
$new_post = array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Base functions.php for WordPress themes | |
* | |
* @package WordPress 3.3 | |
* @author Andres Hermosilla | |
*/ | |
/** |