php – Display a text message if the shortcode is not found?

Thank you, it's the picu gallery plugin that I adapted the code to include it in the woo commerce account.

The tutorial reference is here:

CREATE CUSTOMER SPACE AND VIEW A LIST OF COLLECTIONS

That's all my php code:

        / **

* Account menu items
*
* @param arr $ items
* @return arr
* /
function iconic_account_menu_items ($ items) {

$ items['galeries'] = __ (& # 39; Galleries & nbsp; photos & # 39; iconic & # 39;);

return items $;

}

add_filter (& # 39; woocommerce_account_menu_items & # 39 ;, iconic_account_menu_items & # 39 ;, 10, 1);
/ **
* Add an end point
* /
iconic_add_my_account_endpoint () {function

add_rewrite_endpoint (& # 39; galleries & # 39; EP_PAGES);

}

add_action (& # 39; init & # 39 ;, & c; iconic_add_my_account_endpoint & # 39;);
/ **
* galleries content
/
iconic_galeries_endpoint_content () {function
echo /
Model Name: Customer Zone * /

get_header ();
?>

user_email)) { echo & # 39;

& # 39 ;. sprintf (__ (% s, these collections are ready to be approved, & # 39; my # theme; $ current_user-> display_name). & # 39 ;:

& # 39 ;; echo do_shortcode (& # 39;[picu_list_collections email="' . $current_user->user_email . '"]& # 39; true); } other { echo & # 39;

& # 39 ;. sprintf (__ (it's something you like s & # 39; identify to see this page, & # 39; my-theme & # 39;), wp_login_url (get_permalink ())). & # 39 ;.

& # 39 ;; } ?>

add_action (& # 39; woocommerce_account_galeries_endpoint & # 39 ;, & gt; iconic_galeries_endpoint_content & # 39;);
/ **
* Edit my account menu command
* /

function my_account_menu_order () {
$ menuOrder = array (
& # 39; orders & # 39; => __ ("Your orders," & "woocommerce"),
& # 39; gallery & # 39; => __ ('photo galleries', 'woocommerce'),
& # 39; downloads & # 39; => __ (& # 39; Download & # 39; woocommerce & # 39;),
& # 39; edit-address & # 39; => __ (& # 39; Addresses & # 39; woocommerce & # 39;),
& # 39; edit-account & # 39; => __ ('account details', 'woocommerce'),
& # 39; customer-logout & # 39; => __ (& # 39; Logout & # 39; woocommerce & # 39;),
)
return $ menuOrder;
}
add_filter (& # 39; woocommerce_account_menu_items & # 39; my_account_menu_order & # 39;);