Fanatic (April 30th, 2013)
function acf_location_filter( $props, $name, $location ) {
if ( ! isset( $props[ $location ] ) || 'yes' !== $props[ $location ] )
return false;
return $props;
}
function acf_private_filter( $props ) {
if ( isset( $props['private'] ) && 'yes' === $props['private'] && isset( $props['can_see'] ) && ! $props['can_see'] )
return false;
return $props;
}
function acf_logged_filter( $props ) {
if ( isset( $props['logged_in'] ) && 'yes' === $props['logged_in'] && ! is_user_logged_in() )
return false;
return $props;
}
function acf_featured_filter( $props ) {
if ( isset( $props['featured'] ) && 'yes' === $props['featured'] && ! is_sticky() )
return false;
return $props;
}
arthemes.org - AppThemes plugins, tutorials, modifications and services |
Fanatic (April 30th, 2013)
There are currently 1 users browsing this thread. (0 members and 1 guests)