Skip to content

Instantly share code, notes, and snippets.

@aimahdi
Last active November 17, 2025 06:35
Show Gist options
  • Select an option

  • Save aimahdi/a92363c5a73e59163f52c35cbcc7bf28 to your computer and use it in GitHub Desktop.

Select an option

Save aimahdi/a92363c5a73e59163f52c35cbcc7bf28 to your computer and use it in GitHub Desktop.
<?
add_action('init', function () {
\FluentCart\Api\FluentCartGeneralApi::getInstance()->addCustomerDashboardEndpoint(
'support', [
'title' => __('Support Ticket', 'fluent-cart-pro'),
// 'render_callback' => function () {
// echo 'Put your text';
// },
'page_id' => 178,
]
);
});
//Note: If you use render callback then the content from call back will be displayed. If you would like to add a specific wordpress page, skip render_callback method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment