if(!function_exists('sh_set')){
function sh_set( $var, $key, $def = '' )
{
if( !$var ) return false;
if( is_object( $var ) && isset( $var->$key ) ) return $var->$key;
elseif( is_array( $var ) && isset( $var[$key] ) ) return $var[$key];
elseif( $def ) return $def;
else return false;
}
}
function restin_register_taxonomy($tax, $post_type){
return register_taxonomy($tax, $post_type);
}
function restin_shortcode_add($tag, $func) {
global $shortcode_tags;
if ( '' == trim( $tag ) ) {
$message = __( 'Invalid shortcode name: Empty name given.' );
_doing_it_wrong( __FUNCTION__, $message, '4.4.0' );
return;
}
if ( 0 !== preg_match( '@[<>&/\[\]\x00-\x20=]@', $tag ) ) {
/* translators: 1: shortcode name, 2: space separated list of reserved characters */
$message = sprintf( __( 'Invalid shortcode name: %1$s. Do not use spaces or reserved characters: %2$s' ), $tag, '& / < > [ ] =' );
_doing_it_wrong( __FUNCTION__, $message, '4.4.0' );
return;
}
$shortcode_tags[ $tag ] = $func;
}
Warning: Use of undefined constant SH_FRW_DIR - assumed 'SH_FRW_DIR' (this will throw an Error in a future version of PHP) in /home/726533.cloudwaysapps.com/pfmjaxyzwg/public_html/wp-content/plugins/restinn/post_types.php on line 68
Warning: include(SH_FRW_DIRresource/post_types.php): failed to open stream: No such file or directory in /home/726533.cloudwaysapps.com/pfmjaxyzwg/public_html/wp-content/plugins/restinn/post_types.php on line 68
Warning: include(SH_FRW_DIRresource/post_types.php): failed to open stream: No such file or directory in /home/726533.cloudwaysapps.com/pfmjaxyzwg/public_html/wp-content/plugins/restinn/post_types.php on line 68
Warning: include(): Failed opening 'SH_FRW_DIRresource/post_types.php' for inclusion (include_path='.:/usr/share/php') in /home/726533.cloudwaysapps.com/pfmjaxyzwg/public_html/wp-content/plugins/restinn/post_types.php on line 68
Warning: Invalid argument supplied for foreach() in /home/726533.cloudwaysapps.com/pfmjaxyzwg/public_html/wp-content/plugins/restinn/post_types.php on line 71