Plugin Directory

Changeset 1269963


Ignore:
Timestamp:
10/21/2015 01:45:32 AM (10 years ago)
Author:
stubgo
Message:

Add missing links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • automatic-copyright-year/trunk/automatic-copyright-year.php

    r1197466 r1269963  
    3030}
    3131add_action( 'wp_enqueue_scripts', 'wpsos_include_scripts' );
     32
     33/**
     34 * Add links to WPSOS
     35 */
     36function wpsos_acy_set_plugin_meta( $links, $file ) {
     37
     38    if ( strpos( $file, 'automatic-copyright-year.php' ) !== false ) {
     39
     40        $links = array_merge( $links, array( '<a href="http://www.wpsos.io/wordpress-plugin-automatic-copyright-year/">' . __( 'Plugin details', 'simple-embed-code' ) . '</a>' ) );
     41        $links = array_merge( $links, array( '<a href="http://www.wpsos.io/">' . __( 'WPSOS - WordPress Security, Optimization & Speed', 'simple-embed-code' ) . '</a>' ) );
     42    }
     43    return $links;
     44}
     45add_filter( 'plugin_row_meta', 'wpsos_acy_set_plugin_meta', 10, 2 );
    3246?>
Note: See TracChangeset for help on using the changeset viewer.