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 | |
/** | |
* @package Admin | |
*/ | |
/** | |
* This class handles the pointers used in the introduction tour. | |
* | |
* @todo Add an introdutory pointer on the edit post page too. | |
*/ |
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
global $wpdb; | |
$rows = $wpdb->get_results( $wpdb->prepare( "SELECT blog_id FROM wp_blogs where blog_id > 1" ) ); | |
foreach( $rows as $row ) { | |
print_r( "siteid ".$row->blog_id ); | |
} |
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_action('publish_post', 'schedule_glossary_index', 10, 1); | |
function schedule_glossary_index($post_id) { | |
wp_schedule_single_event(time(), 'update_glossary_index', array( $post_id )); | |
} | |
add_action('update_glossary_index', 'do_update_glossary_index', 10, 1); | |
function do_update_glossary_index($post_id) { | |
global $wpdb; |
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 | |
/* | |
$Id: sitemap-builder.php 420059 2011-08-06 14:31:30Z arnee $ | |
*/ | |
/** | |
* Default sitemap builder | |
* | |
* @author Arne Brachhold |
NewerOlder