Plugin Directory

Changeset 1843150


Ignore:
Timestamp:
03/19/2018 11:02:51 PM (8 years ago)
Author:
raajtram
Message:

Minor code formatting and readme.txt updates

Location:
woo-terms-conditions-text/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woo-terms-conditions-text/trunk/readme.txt

    r1617444 r1843150  
    22
    33Contributors: raajtram
    4 Donate link: http://raajtram.com/
     4Donate link: https://raajtram.com/
    55Tags: woocommerce, woo
    66Requires at least: 3.0.1
    7 Tested up to: 4.7.3
    8 Stable tag: 4.4.1
     7Tested up to: 4.9.4
    98License: GPLv3
    109License URI: http://www.gnu.org/licenses/gpl.txt
     
    3433== Changelog ==
    3534
     35= 1.0.2 =
     36* Minor updates to the plugin code
     37
    3638= 1.0.1 =
    3739*Fixes the name of the plugin in the readme.txt file.
  • woo-terms-conditions-text/trunk/woo-terms-text.php

    r1617444 r1843150  
    55Plugin URI: https://raajtram.com/plugins/wtc
    66Description: Allows you to change the Terms & Conditions text for WooCommerce.
    7 Version: 1.0.1
     7Version: 1.0.2
    88Author: Raaj Trambadia
    99Author URI: https://raajtram.com/
     
    1111
    1212defined( 'ABSPATH' ) or die( 'Plugin file cannot be accessed directly.' );
     13
     14/* Register Settings */
    1315
    1416function wtc_init() {
     
    3436add_action( 'admin_init', 'wtc_init');
    3537
     38/* Callback */
     39
    3640function wtc_cb() {}
     41
     42/* Callback */
    3743
    3844function wtc_front_cb() {
     
    4147    echo '<input type="text" name="wtc_settings[wtc_new_text]" value="' . esc_attr( $options['wtc_new_text'] ) . '" placeholder="e.g. I have read and agree to the Return Policy and the Terms and Conditions of this store." style="width: 100%;">';
    4248}
     49
     50/* Options - HTML */
    4351
    4452function wtc_options() {
     
    6573}
    6674
     75/* Admin Menu */
     76
    6777function wtc_menu() {
    6878    add_options_page(
     
    7787add_action( 'admin_menu', 'wtc_menu' );
    7888
     89/* Core function */
    7990
    8091function wtc_text_strings( $translated_text, $text, $domain ) {
Note: See TracChangeset for help on using the changeset viewer.