2. About Me
I work for 10up working on awesome
WordPress projects
I have a wife and 3 kids.
I live in St. George UT.
I just finished my backyard after working on it
for 4 months.
16. do_action
if ( $valid_request ) {
if ( $status == 'approve' ) {
// dev can remove or add to
do_action( 'new_user_approve_approve_user' );
} else if ( $status == 'deny' ) {
do_action( 'new_user_approve_deny_user' );
}
}
17. apply_filters
$welcome = sprintf( __( 'Welcome to %s. This
site is accessible to approved users only.
To be approved, you must first register.',
'new_user_approve' ), get_option( 'blogname'
) );
$welcome = apply_filters(
'new_user_approve_welcome_message', $welcome
);
21. /**
* Display the permalink for the current post.
*
* @since 1.2.0
* @uses apply_filters() Calls 'the_permalink' filter on
the permalink string.
*/
function the_permalink() {
echo apply_filters('the_permalink', get_permalink());
}
23. /**
* Creates a redirect post, this function will be useful
for import/exports scripts
* @param string $redirect_from
* @param string $redirect_to
* @param int $status_code
* @since 1.3
* @uses wp_insert_post, update_post_meta
* @return int
*/
public function create_redirect( $redirect_from,
$redirect_to, $status_code ) {
....
}
25. /** If you hardcode a WP.com API key here, all key config
screens will be hidden */
if ( defined('WPCOM_API_KEY') )
$wpcom_api_key = constant('WPCOM_API_KEY');
else
$wpcom_api_key = '';