Plugin Directory

Changeset 3027524


Ignore:
Timestamp:
01/26/2024 10:41:37 PM (2 years ago)
Author:
Domifry
Message:

Version 2.9.4

Location:
german-posting-filter/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • german-posting-filter/trunk/README.txt

    r3027522 r3027524  
    66Requires at least: 6.0
    77Tested up to: 6.4
    8 Stable tag: 2.9.2
     8Stable tag: 2.9.4
    99Requires PHP: 7.0
    1010License: GPL-2.0+
  • german-posting-filter/trunk/german-posting-filter.php

    r3027522 r3027524  
    33Plugin Name: German Posting Filter
    44Description: Fügt ein German Posting Feature hinzu.
    5 Version: 2.9.2
     5Version: 2.9.4
    66Author: Dr. Dominic Lindner
    77License: GPL-2.0+
     
    139139}
    140140
     141function GPF_save_german_posting_data($post_id) {
     142    if (isset($_POST['german_post'])) {
     143        update_post_meta($post_id, '_german_post', 1);
     144    } else {
     145        delete_post_meta($post_id, '_german_post');
     146    }
     147}
     148add_action('save_post', 'GPF_save_german_posting_data');
     149
    141150function GPF_get_country_from_ip($ip) {
    142151    global $country_code;
Note: See TracChangeset for help on using the changeset viewer.