Inventory_Presser_Plugin::insert_settings_link( array $links )
Adds a link to the settings page near the Activate | Delete links on the list of plugins on the Plugins page.
On This Page
Parameters Parameters
- $links
-
(array) (Required)
Return Return
(array)
Source Source
File: inventory-presser.php
public function insert_settings_link( $links ) {
$url = admin_url(
sprintf(
'edit.php?post_type=%s&page=%s',
INVP::POST_TYPE,
INVP::OPTION_PAGE
)
);
$links[] = sprintf(
'<a href="%s">%s</a>',
esc_url( $url ),
esc_html__( 'Settings', 'inventory-presser' )
);
return $links;
}
Expand full source codeCollapse full source codeView on Github