// 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()) . '
Behind every sponsorship is a child with a name, a story, a family, and a future waiting to be shaped with love and support.
At Yahweh Mission International, we help donors connect with children who need support for education, food, medical care, clothing, and long-term growth. Every child we serve belongs to a family or community. Our goal is not adoption, but sponsorship — helping a child grow with dignity, stability, and hope while remaining rooted in their family and surroundings.
When you choose to sponsor a child, you are not only giving money. You are building a meaningful connection that can encourage a child, strengthen a family, and open the door to a better future.
We make the sponsorship process personal, respectful, and safe. Whether you want to sponsor a child’s education, support their medical needs, help their family, or visit the mission in person, our team will guide you step by step.
01.
Reach Out to Our Team
Start by calling, messaging, or writing to Yahweh Mission International. Tell us that you are interested in sponsoring or meeting a child. Our team will listen to your heart, explain the process, and help you understand the different ways you can support a child.
02.
Learn About the Children
We will share available child sponsorship opportunities with you in a respectful and protected way. You may learn about a child’s general background, needs, education situation, and the type of support that would help them most.
03.
Choose How You Want to Support
You can choose to support a child’s education, food, medical care, clothing, family needs, or long-term development. You may also choose monthly child sponsorship or a one-time donation toward a specific need.
Some donors want to do more than give from a distance. They want to see the mission, meet the children, understand their stories, and experience the work with their own eyes.
Yahweh Mission International can create opportunities for donors, families, churches, and partners to visit the mission field and spend meaningful time with the children and team. During your visit, you may be able to meet sponsored children, share a meal, take part in simple activities, pray with the team, and see how your support is changing lives.
Every visit is arranged with care. The safety, privacy, and dignity of each child always comes first. Meetings are supervised by the mission team, and children are introduced only in a way that is appropriate, respectful, and approved.
This is not about taking a child away from their family. It is about standing beside the child, supporting their future, and helping them grow in the place they call home.
From a simple video greeting to a planned visit at the mission, we help sponsors connect with children in a safe, respectful, and meaningful way. Every meeting is arranged with care, protecting the child’s dignity while helping you see the real life your support is touching.
Your visit can become a memory of hope for a child.
A Child Is Waiting for Someone to Believe in Their Future
Your first step can become a turning point in a child’s life. Whether you choose to sponsor monthly, give once, visit the mission, or simply begin a conversation with us, your kindness can become part of a child’s story of hope.