%s', esc_url( Plugin::get_url( 'settings' ) ), esc_html__( 'Settings', '404-to-301' ) ),
sprintf( '%s', esc_url( Plugin::get_url( 'logs' ) ), esc_html__( 'Logs', '404-to-301' ) ),
sprintf( '%s', esc_url( Plugin::get_url( 'redirects' ) ), esc_html__( 'Redirects', '404-to-301' ) ),
);
return array_merge( $ours, $links );
}
/**
* Append documentation and support links to the plugin's row meta.
*
* @since 4.0.0
*
* @param string[] $meta Existing row-meta links.
* @param string $file Plugin basename of the row currently being rendered.
*
* @return array
*/
public function row_meta( $meta, $file ): array {
$meta = is_array( $meta ) ? $meta : array();
if ( D404_BASE_NAME === $file ) {
$meta['docs'] = sprintf(
'%s',
'https://docs.duckdev.com/404-to-301/',
esc_html__( 'Documentation', '404-to-301' )
);
$meta['addons'] = sprintf( '%s', esc_url( Plugin::get_url( 'addons' ) ), esc_html__( 'Add-ons', '404-to-301' ) );
$meta['support'] = sprintf(
'%s',
'https://wordpress.org/support/plugin/404-to-301/',
esc_html__( 'Support', '404-to-301' )
);
}
return $meta;
}
}