// Yahweh Mission Dashboard Integration — WPCode snippet version
// Paste this into a new PHP Snippet in WPCode, set to run "Auto Insert" /
// "Everywhere", and activate it. Functionally identical to the plugin
// version — just packaged as a snippet since this host strips .php files
// out of uploaded plugin zips.
if (!function_exists('ymi_get_api_url')) {
function ymi_get_api_url() {
return rtrim(get_option('ymi_dashboard_api_url', ''), '/');
}
}
// ---- Settings page: Settings -> Yahweh Mission ----
add_action('admin_menu', function () {
add_options_page('Yahweh Mission Dashboard', 'Yahweh Mission', 'manage_options', 'yahweh-mission', 'ymi_render_settings_page');
});
add_action('admin_init', function () {
register_setting('ymi_settings', 'ymi_dashboard_api_url', array(
'sanitize_callback' => 'esc_url_raw',
'default' => '',
));
});
function ymi_render_settings_page() {
if (!current_user_can('manage_options')) {
return;
}
$api_url = get_option('ymi_dashboard_api_url', '');
?>
Yahweh Mission Dashboard
Connects this site to the Yahweh Mission Dashboard so published children, gifts, and projects appear here automatically via the [ymi_children], [ymi_gift_catalog], and [ymi_child_profile] shortcodes.
Connection check
8));
if (is_wp_error($response)) {
echo '
Could not reach the dashboard: ' . esc_html($response->get_error_message()) . '
Have a question, prayer request, partnership idea, or desire to support our mission?
We would love to hear from you. Connect with The Yahweh Mission and discover how we can work together to bring hope, compassion, and lasting opportunities to vulnerable children, families, and communities.
Reach Out
+1 (513) 203-5558
info@theyahwehmission.com
Head Office
8707 John Hamm Rd., Milton, FL, United States, 32583
Find answers to common questions about volunteering, donations, child sponsorship, partnerships, prayer requests, and connecting with The Yahweh Mission.
1. How can I support The Yahweh Mission?
You can support our work by donating, sponsoring a child, volunteering your time, organizing a fundraiser, praying for our mission, or becoming a church, corporate, or community partner.
2. How can I volunteer with The Yahweh Mission?
Visit our Volunteer page and complete the volunteer application form. Tell us about your skills, experience, availability, and preferred area of service so our team can identify a suitable opportunity.
3. Can my church or organization partner with you?
Yes. We welcome partnerships with churches, nonprofit organizations, businesses, schools, and community groups that share our commitment to serving vulnerable children and families.
4. How can I submit a prayer request?
You can submit your prayer request through our Prayer Requests page or select “Prayer Request” in the contact form. Our prayer community will treat your request with care and respect.
5. How quickly will I receive a response?
Our team aims to respond within two to three working days. Responses may take slightly longer during public holidays, emergencies, or periods of increased field activity.