, Ruben Garcia * @since 1.0.0 */ // Exit if accessed directly if( !defined( 'ABSPATH' ) ) exit; /** * Plugins row action links * * @since 1.0.0 * * @param array $links Array of plugin action links * @param string $file Plugin file * * @return array $links */ function automatorwp_plugin_action_links( $links, $file ) { if ( $file != 'automatorwp/automatorwp.php' ) return $links; $settings_link = '' . esc_html__( 'Settings', 'automatorwp' ) . ''; array_unshift( $links, $settings_link ); return $links; } add_filter( 'plugin_action_links', 'automatorwp_plugin_action_links', 10, 2 ); /** * Plugin row meta links * * @since 1.0.0 * * @param array $input Array of plugin meta links * @param string $file Plugin file * * @return array $input */ function automatorwp_plugin_row_meta( $input, $file ) { if ( $file != 'automatorwp/automatorwp.php' ) return $input; $links = array( '' . esc_html__( 'Add-ons', 'automatorwp' ) . '', '' . esc_html__( 'Docs', 'automatorwp' ) . '', '' . esc_html__( 'Support', 'automatorwp' ) . '', ); $input = array_merge( $input, $links ); return $input; } add_filter( 'plugin_row_meta', 'automatorwp_plugin_row_meta', 10, 2 );