Plugin Directory

Changeset 2858684


Ignore:
Timestamp:
02/02/2023 01:27:31 AM (2 years ago)
Author:
jcwpplugins
Message:

Add Settings link on plugins page

Location:
jcwp-add-quote-button-in-product-page
Files:
24 added
6 edited

Legend:

Unmodified
Added
Removed
  • jcwp-add-quote-button-in-product-page/trunk/jcwp-add-quote-button-in-product-page.php

    r2858001 r2858684  
    44* Plugin URI: https://jcwpplugins.com/jcwp-add-quote-button-in-product-page/
    55* Description: A plugin that adds a WhatsApp quote button on the WooCommerce product and shop page.
    6 * Version: 1.0.0
     6* Version: 1.0.1
    77* Author: JcwpPlugins
    88* Author URI: https://jcwpplugins.com
     
    3434        add_action( 'woocommerce_after_shop_loop_item', array($this, 'jcwp_quote_option_field_add_button_shop') );
    3535        add_action( 'wp_enqueue_scripts', array($this, 'jcwp_quote_option_field_enqueue_styles') );
     36
     37        add_filter("plugin_action_links_".plugin_basename(__FILE__), array($this,'custom_plugin_settings_link'));
     38
     39
    3640    }
    3741
     
    4650
    4751    );
     52    }
     53
     54    public function custom_plugin_settings_link($links) {
     55        $settings_link = '<a href="options-general.php?page=jcwp-quote-button-in-product-page">'.__('Settings','jcwp-add-quote-button-in-product-page').'</a>';
     56        array_push($links, $settings_link);
     57        return $links;
    4858    }
    4959
  • jcwp-add-quote-button-in-product-page/trunk/readme.txt

    r2858001 r2858684  
    55Requires at least: 4.0
    66Tested up to: 6.1
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    43432. Button result on product page
    44443. Button result on shop page
     454. Button Result Example
    4546
    4647== Changelog ==
     48= 1.0.1 =
     49* Add Settings link on plugins page
    4750= 1.0.0 =
    4851* Initial Plugin release
Note: See TracChangeset for help on using the changeset viewer.