Plugin Directory

Changeset 1455077


Ignore:
Timestamp:
07/15/2016 06:40:22 AM (10 years ago)
Author:
dansod
Message:

Tested in 4.5.3 and email preset for logged in users.

Location:
subscribe-to-category/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • subscribe-to-category/trunk/classes/class-subscribe.php

    r1327792 r1455077  
    608608     * @since  1.0.0
    609609     *
    610      * @return [type] [description]
    611      *
    612      * @todo add some filter
     610     * @return string
    613611     */
    614612    public function stc_subscribe_render( $atts ){
     
    619617        $form = ob_get_contents();
    620618        ob_get_clean();
    621         //$form = apply_filters( 'stc_form', $form, 'teststring' );
     619
    622620        return $form;
    623621    }
     
    834832            if( isset( $_POST['stc_email']) )
    835833                $email = $_POST['stc_email'];
    836         }
     834        }else{
     835        // preset for email adress if the user is logged in
     836        if( is_user_logged_in() ){
     837          $user_id = get_current_user_id();
     838          $user_info = get_userdata( $user_id );
     839          $email = $user_info->user_email;
     840        }
     841      }
     842
     843
    837844
    838845      // Is there a unsubscribe action
  • subscribe-to-category/trunk/readme.txt

    r1327793 r1455077  
    33Tags: subscribe to post, subscribe to category, subscribe to news, subscribe
    44Requires at least: 3.9
    5 Tested up to: 4.4.1
    6 Stable tag: 1.8.1
     5Tested up to: 4.5.3
     6Stable tag: 1.9.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3232
    3333= What Translations are included? =
     34* Dutch
    3435* English
    3536* French
     37* German
    3638* Italian
     39* Japanese
    3740* Lithuanian
     41* Norwegian
    3842* Russian
    3943* Spanish
    4044* Swedish
     45
    4146____
    4247Have you translated this plugin to another language? Please send me your files to [email protected] and I will add them to the plugin.
     
    114119
    115120== Changelog ==
     121= 1.9.0 =
     122* Email address preset for logged in users.
     123* Japanese, Dutch, German and Norwegian language added.
     124
    116125= 1.8.1 =
    117126* Added pot file to be used for translation.
     
    119128
    120129= 1.7.0 =
    121 * Added some new hooks: stc_after_update_subscriber, stc_after_insert_subscriber, stc_before_unsubscribe
     130* Added some new hooks: stc_after_update_subscriber, stc_after_insert_subscriber, stc_before_unsubscribe.
    122131
    123132= 1.6.0 =
    124 * Added a Widget for subscription form
    125 * Don't show category list if only one is available (thanks to davefx)
    126 * Extended short code attributes with an option to use category id instead of category name (thanks to Stingray_454)
     133* Added a Widget for subscription form.
     134* Don't show category list if only one is available (thanks to davefx).
     135* Extended short code attributes with an option to use category id instead of category name (thanks to Stingray_454).
    127136
    128137= 1.3 =
    129 * Added hooks and filters to make the plugin extensible
    130 * Added Lithuanian language thanks to Claudio
     138* Added hooks and filters to make the plugin extensible.
     139* Added Lithuanian language.
    131140
    132141= 1.2.1 =
    133 * Fixed some undefined variables that might have caused some errors for some environments
    134 * Renamed language files for russian language to correct syntax
    135 * Added Italian language thanks to Claudio
     142* Fixed some undefined variables that might have caused some errors for some environments.
     143* Renamed language files for russian language to correct syntax.
     144* Added Italian language.
    136145
    137146= 1.2.0 =
     
    143152= 1.1.0 =
    144153* Added php sleep() function to prevent sending all e-mails in the same scope.
    145 * Using Ajax when send is manually triggered in back-end
     154* Using Ajax when send is manually triggered in back-end.
    146155
    147156= 1.0.0 =
  • subscribe-to-category/trunk/subscribe-to-category.php

    r1327792 r1455077  
    44  Plugin URI: http://dcweb.nu
    55  Description: Lets your visitor subscribe to posts for one or several categories.
    6   Version: 1.8.1
     6  Version: 1.9.0
    77  Author: Daniel Söderström
    88  Author URI: http://dcweb.nu/
Note: See TracChangeset for help on using the changeset viewer.