Plugin Directory

Changeset 1269969


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

Add missing links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • unblock-cs-jss-for-googlebot/trunk/unblock-css-js-for-googlebot.php

    r1211082 r1269969  
    2626}
    2727add_filter('robots_txt', 'wpsos_allow_googlebot', 10, 2);
     28
     29/**
     30 * Add links to WPSOS
     31 */
     32function wpsos_ucjg_set_plugin_meta( $links, $file ) {
     33
     34    if ( strpos( $file, 'unblock-css-js-for-googlebot.php' ) !== false ) {
     35
     36        $links = array_merge( $links, array( '<a href="http://www.wpsos.io/wordpress-plugin-unblock-css-js-for-googlebot/">' . __( 'Plugin details', 'simple-embed-code' ) . '</a>' ) );
     37        $links = array_merge( $links, array( '<a href="http://www.wpsos.io/">' . __( 'WPSOS - WordPress Security, Optimization & Speed', 'simple-embed-code' ) . '</a>' ) );
     38    }
     39    return $links;
     40}
     41add_filter( 'plugin_row_meta', 'wpsos_ucjg_set_plugin_meta', 10, 2 );
    2842?>
Note: See TracChangeset for help on using the changeset viewer.