id === $ata_settings_page ) { $text = sprintf( /* translators: 1: Plugin page link, 2: Review link. */ __( 'Thank you for using Add to All! Please rate us on WordPress.org', 'add-to-all' ), 'https://ajaydsouza.com/wordpress/plugins/add-to-all', 'https://wordpress.org/support/plugin/add-to-all/reviews/#new-post' ); return str_replace( '', '', $footer_text ) . ' | ' . $text . ''; } else { return $footer_text; } } add_filter( 'admin_footer_text', 'ata_admin_footer' ); /** * Adding WordPress plugin action links. * * @param array $links Array of links. * @return array */ function ata_plugin_actions_links( $links ) { return array_merge( array( 'settings' => '' . esc_html__( 'Settings', 'add-to-all' ) . '', ), $links ); } add_filter( 'plugin_action_links_' . plugin_basename( ATA_PLUGIN_FILE ), 'ata_plugin_actions_links' ); /** * Add meta links on Plugins page. * * @param array $links Array of Links. * @param string $file Current file. * @return array */ function ata_plugin_actions( $links, $file ) { if ( false !== strpos( $file, 'add-to-all.php' ) ) { $links[] = '' . esc_html__( 'Support', 'add-to-all' ) . ''; $links[] = '' . esc_html__( 'Donate', 'add-to-all' ) . ''; } return $links; } add_filter( 'plugin_row_meta', 'ata_plugin_actions', 10, 2 );