Plugin Directory

Changeset 2549472


Ignore:
Timestamp:
06/17/2021 06:49:26 AM (5 years ago)
Author:
willfonkam
Message:

Restricted the cpt taken in charge (only public cpts)

Location:
iaf-social-share/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • iaf-social-share/trunk/iaf-social-share.php

    r2549322 r2549472  
    22/*
    33 * Plugin Name: IAF Social Share
    4  * Description: A simple plugin to share articles and pages on social media including Whatsapp.
     4 * Description: A simple plugin to share articles, pages and any other post types on the most commonly used social media including Whatsapp.
    55 * Author: Fotso Fonkam
    66 * Author URI: http://www.iamfotso.cm/a-propos/
    7  * Version: 1.0
     7 * Version: 1.1.1
    88 * Licence: GPL2+
    99 * Text Domain: iaf-social-share
     
    1515// INCLUDES
    1616include( 'inc/activate.php' );
    17 include( 'inc/deactivate.php' );
    1817include( 'inc/enqueue.php' );
    1918include( 'inc/admin/menu.php' );
     
    2524// HOOKS
    2625register_activation_hook( __FILE__, 'iaf_activate_plugin' );
    27 register_deactivation_hook( __FILE__, 'iaf_deactivate_plugin' );
    2826add_action( 'wp_enqueue_scripts', 'iaf_enqueue' );
    2927add_action( 'admin_enqueue_scripts', 'iaf_admin_enqueue' );
  • iaf-social-share/trunk/inc/admin/sidebar-box.php

    r2549322 r2549472  
    4444
    4545        <?php
    46         $iaf_cpts    = get_post_types( array( '_builtin' => false ), 'objects' );
    47 
     46        $args           = [
     47            'public'    => true,
     48            '_builtin'  => false,
     49        ];
     50        $iaf_cpts       = get_post_types( $args, 'objects' );
     51       
    4852        foreach( $iaf_cpts as $cpt ) {
    4953            ?>
  • iaf-social-share/trunk/readme.txt

    r2549322 r2549472  
    55Requires PHP: 5.2.4
    66Tested up to: 5.7
    7 Stable tag: 1.1
     7Stable tag: 1.1.1
    88License: GPL2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212
    1313== Description ==
    14 Easily share your content (posts and articles) on several social media, namely Facebook, Twitter, LinkedIn, Telegram and WhatsApp. You have the possibility to customize the buttons (choose the colour, position, skin etc.) so that they match as much as possible your design. You can also decide whether the icon or text will appear or not. Decide how the buttons will look like on mobile devices.
     14Easily share your content (posts, articles and any public custom post type) on several social media, namely Facebook, Twitter, LinkedIn, Telegram and WhatsApp. You have the possibility to customize the buttons (choose the colour, position, skin etc.) so that they match as much as possible your design. You can also decide whether the icon or text will appear or not. Decide how the buttons will look like on mobile devices.
    1515
    1616== Installation ==
     
    3333= 1.1 =
    3434* Share buttons can be added to custom post types
     35
     36= 1.1.1 =
     37* Restriction added : only public custom post types will appear in the settings form
Note: See TracChangeset for help on using the changeset viewer.