This file contains 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: EE Event Roles Plugin | |
Description: Creates the 'Event Organiser' and 'Events Maneger' roles for use within Event Espresso. | |
Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from comment and trackback spam</strong>. It keeps your site protected from spam even while you sleep. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://akismet.com/get/">Sign up for an Akismet API key</a>, and 3) Go to your Akismet configuration page, and save your API key. | |
Version: 1.0.0 | |
*/ | |
function add_roles_on_plugin_activation() { |
This file contains 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 // Please do not add the opening PHP tag if you already have one | |
add_filter('default_content', 'tw_ee_default_post_content', 2, 10); | |
function tw_ee_default_post_content($post_content, $post){ | |
if(get_post_type($post) == 'espresso_events'){ | |
$post_content = 'Add your default EE post content here'; | |
} | |
return $post_content; | |
} |
OlderNewer