ims_{$type}_status_links

Description

The “ims_{$type}_status_links” filter is used to add or remove Image Store pages like photos, favorites, price list, and cart.

A plugin (or theme) can modify the array with the code:

<?php add_filter( 'ims_{$type}_status_links', 'filter_function_name' ); ?>

The hook is located in the image-store/_inc/admin.php file.

Example

// Apply filter
function add_status_link( $links, $results, $admin_url ) {
$status[] = '<li><a href="#">Custom status link</a>';
return $links; 
}
add_filter('ims_customer_status_links', 'add_status_link');

Note: $status is an numeric array. $results is an numeric array of objects. $admin_url is a string.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *