{$prop} ) ? $user->{$prop} : '';
}
/**
* @param string $prop
* @return mixed
*/
public function post( $prop ) {
global $post;
if( ! $post instanceof WP_Post || ! isset( $post->{$prop} ) ) {
return '';
}
return $post->{$prop};
}
/**
* @param string $key
* @return mixed
*/
public function url_params( $key ) {
if( ! isset( $_GET[ $key] ) ) {
return '';
}
return esc_attr( strip_tags( $_GET[$key] ) );
}
}