Plugin Directory

Changeset 1545713


Ignore:
Timestamp:
12/05/2016 09:35:58 AM (9 years ago)
Author:
cvmh
Message:

2.4

  • Added: cvmh_sticky_title filter
Location:
sticky/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sticky/trunk/includes/functions.php

    r1442454 r1545713  
    9393
    9494            if ( $args['showtitle'] ) :
    95                 $title = get_the_title();
     95                $title = apply_filters( 'cvmh_sticky_title', get_the_title(), $post->ID );
    9696                if ( ! empty( $args['titlelength'] ) and strlen( $title ) > $args['titlelength'] ) :
    9797                    $title = substr( $title, 0, $args['titlelength'] ) . '...';
  • sticky/trunk/readme.txt

    r1442454 r1545713  
    3030== Changelog ==
    3131
     32= 2.4 =
     33* Added: cvmh_sticky_title filter
     34
    3235= 2.3 =
    3336* Added: index parameter in cvmh_sticky_readmore filter
  • sticky/trunk/sticky.php

    r1442454 r1545713  
    44 * Plugin URI: http://www.agence-web-cvmh.fr
    55 * Description: Adds sticky support for pages and/or custom posts.
    6  * Version: 2.3
     6 * Version: 2.4
    77 * Author: CVMH solutions
    88 * Author URI: http://www.agence-web-cvmh.fr
     
    1616add_action( 'plugins_loaded', 'cvmh_sticky_constants', 1 );
    1717function cvmh_sticky_constants() {
    18     define( 'CVMH_STICKY_VERSION'       , '2.0' );
     18    define( 'CVMH_STICKY_VERSION'       , '2.4' );
    1919    define( 'CVMH_STICKY_PATH'          , trailingslashit( plugin_dir_path( __FILE__ ) ) );
    2020    define( 'CVMH_STICKY_URI'           , trailingslashit( plugin_dir_url( __FILE__ ) ) );
Note: See TracChangeset for help on using the changeset viewer.