'Offers', 'public' => true, 'show_in_rest' => true, 'supports' => ['title','editor','author','comments'], 'capability_type' => ['offer','offers'], 'map_meta_cap' => true, 'has_archive' => true, 'rewrite' => ['slug' => 'offers'] ]); register_post_type('request', [ 'label' => 'Requests', 'public' => true, 'show_in_rest' => true, 'supports' => ['title','editor','author','comments'], 'capability_type' => ['request','requests'], 'map_meta_cap' => true, 'has_archive' => true, 'rewrite' => ['slug' => 'requests'] ]); register_taxonomy('skills', ['offer','request'], [ 'label' => 'Skills', 'hierarchical' => true, 'show_in_rest' => true ]); register_taxonomy('region', ['offer','request'], [ 'label' => 'Region', 'hierarchical' => false, 'show_in_rest' => true ]); }); // 2) Custom capabilities on activation register_activation_hook(__FILE__, function(){ $roles = ['administrator','editor','author','contributor','subscriber']; $caps = [ 'read_offer','read_offers','edit_offer','edit_offers','publish_offers','delete_offer', 'read_request','read_requests','edit_request','edit_requests','publish_requests','delete_request' ]; foreach ($roles as $r){ if($role = get_role($r)){ foreach($caps as $c){ $role->add_cap($c); } } } flush_rewrite_rules(); }); register_deactivation_hook(__FILE__, function(){ flush_rewrite_rules(); }); // 3) Transfer Hours Shortcode [timebank_transfer] // Requires myCred and a points type with key 'hours'. add_shortcode('timebank_transfer', function($atts){ if(!is_user_logged_in()) return '

Please log in to transfer hours.

'; if(!function_exists('mycred')) return '

myCred is required.

'; $current = wp_get_current_user(); if(isset($_POST['tb_transfer_nonce']) && wp_verify_nonce($_POST['tb_transfer_nonce'],'tb_transfer')){ $to_user = intval($_POST['to_user'] ?? 0); $amount = floatval($_POST['amount'] ?? 0); $note = sanitize_text_field($_POST['note'] ?? ''); $points_type = 'hours'; if($to_user && $amount > 0){ $from_balance = mycred_get_users_balance($current->ID, $points_type); if($from_balance >= $amount){ // Subtract from sender mycred_subtract('tb_transfer_out', $current->ID, $amount, 'TimeBank transfer to user #%d: %s', $to_user, $note, $points_type); // Add to receiver mycred_add('tb_transfer_in', $to_user, $amount, 'TimeBank transfer from user #%d: %s', $current->ID, $note, $points_type); echo '
Transfer completed.
'; } else { echo '
Insufficient balance.
'; } } else { echo '
Please provide a recipient and a positive amount.
'; } } // Simple form $users = get_users([ 'exclude' => [$current->ID], 'fields' => ['ID','display_name'] ]); ob_start(); ?>
top of page

The Care Village Community has the help you
need for free, but it needs you

The Care Exchange

The Care Exchange allows members of a community to help others while earning time for themselves. You can offer services to others who will "pay" you in time (hours). Then you can use your time for your needs. It's not necessary to exchange time with the same person as the time goes into your time bank for you to access in the future. It is not a bartering system as bartering involves monetary exchange in a transaction.  Care Exchange members only exchange time. The services may not be related to care giving. An accountant may offer an hour of their time and then bank an hour. The accountant then may need someone to drive a family member to an appointment and could use that hour for that service. The reward hour would be moved to the driver's bank. However, the accountant may also need some handyman work or a hair stylist. The opportunities are endless.

 

The big take away is to know that your time is banked and can be used for any service offered by anyone in the exchange at any time. Please access the Care Exchange here. You will have an initial time bank of 2 hours that you can begin exchanging with others in your community. Have a neighborhood, church group, or family where you would like your own community? Let me know and I'll set that up for you.

Need help? Email me at Info@CareVillageCommunity.org

Join today!!!

Join our mailing list

Never miss an update

Call us today on (760)518-7037

© Copywrite 2024 Care Village Community all rights reserved

CARE VILLAGE COMMUNITY IS A 501(C)(3) NONPROFIT RECOGNIZED BY THE IRS.

  • Instagram
  • Facebook Social Icon
  • Twitter Social Icon
bottom of page