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 | |
/* =========================================== | |
Send Emails when User Profile Changes | |
=============================================*/ | |
// IF EMAIL CHANGES | |
function sr_user_profile_update_email( $user_id, $old_user_data ) { | |
$user = get_userdata( $user_id ); |
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
/* =========================================== | |
Radio Button Icons in Admin for ACF | |
=============================================*/ | |
function sr_acf_radio_style() { | |
echo '<link rel="stylesheet" href="' . plugins_url( 'css/jazz.css', __FILE__) . '" type="text/css" media="screen" />'; | |
} | |
add_action('admin_head', 'sr_acf_radio_style'); |
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
// This is modified to show the image captions | |
function revconcept_get_images($post_id) { | |
global $post; | |
$thumbnail_ID = get_post_thumbnail_id(); | |
$images = get_children( array('post_parent' => $post_id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); | |
if ($images) : |
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
/* =========================================== | |
Show Guest Photo Attachment in CPT Admin Columns | |
=============================================*/ | |
// GET ATTACHED IMAGE | |
function revcon_get_attachment_image($post_ID) { | |
$images = get_attached_media('image', $post_ID); | |
if ($images) { |
NewerOlder