WordPress Create Settings Link on Plugin Activation
X

Congrats, You are Subscribed to Receive Updates.

WordPress Create Settings Link on Plugin Activation


WordPress Create Settings Link on Plugin Activation

screenshot

Easy way to create  settings link for your plugin on the time of activation .  The following code help you to create your custom one.

add_filter( 'plugin_action_links', 'kv_wpschoolpress_settings_link', 10, 2 );

function kv_wpschoolpress_settings_link( $links, $file ) {
	static $my_plugin;
    if (!$my_plugin) {
        $my_plugin = plugin_basename(__FILE__);
    }
    if ($file == $my_plugin) {
        $in = '<a href="options-general.php?page=WPSchoolPress">' . __('WPSchoolPress -Settings','kvcodes') . '</a>';
        array_unshift($links, $in);
    }
    return $links;
}

If you have any problem or bug, drop your comment below.

commenter

About Varadharaj V

The founder of Kvcodes, Varadharaj V is an ERP Analyst and a Web developer specializing in WordPress(WP), WP Theme development, WP Plugin development, Frontaccounting(FA), Sales, Purchases, Inventory, Ledgers, Payroll & HRM, CRM, FA Core Customization, OpenCart Theme Development, PHP, HTML, CSS, jQuery, Bootstrap development and content SEO.

Comment Below

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

*

Current ye@r *

Menu

Sidebar

Subscribe E-mail Updates

Congrats, You are Subscribed to Receive Updates.

Advertisement

Category Posts