Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function custom_bp_datebox($html, $type, $day, $month, $year, $field_id, $date) {
- if($type == 'year'){
- $html = '<option value=""' . selected( $year, '', false ) . '>----</option>';
- for ( $i = 2035; $i > 1901; $i-- ) {
- $html .= '<option value="' . $i .'"' . selected( $year, $i, false ) . '>' . $i . '</option>';
- }
- }
- return $html;
- }
- add_filter( 'bp_get_the_profile_field_datebox', 'custom_bp_datebox',10,7);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement