get_module( 'plugins' ); $accepta_plugins = $plugins_module->get_recommended_plugins(); // Merge WP.org repo info for each plugin (name, description, icon). Cached for one day. foreach ( $accepta_plugins as $slug => $plugin ) { $repo = $plugins_module->get_plugin_info_from_repo( $slug ); if ( $repo ) { if ( ! empty( $repo['name'] ) ) { $accepta_plugins[ $slug ]['name'] = $repo['name']; } if ( ! empty( $repo['description'] ) ) { $accepta_plugins[ $slug ]['description'] = $repo['description']; } if ( ! empty( $repo['icon'] ) ) { $accepta_plugins[ $slug ]['icon_url'] = $repo['icon']; } $accepta_plugins[ $slug ]['homepage'] = isset( $repo['homepage'] ) ? $repo['homepage'] : ''; } else { $accepta_plugins[ $slug ]['icon_url'] = ''; $accepta_plugins[ $slug ]['homepage'] = ''; } } ?>

$plugin ) : $plugin_status = $plugins_module->is_plugin_installed( $plugin_slug ); $is_active = $plugin_status['active']; $is_installed = $plugin_status['installed']; $button_class = $is_active ? 'button button-disabled js-accepta-plugin-btn accepta-plugin-btn--active' : 'button button-primary js-accepta-plugin-btn'; $button_text = $is_active ? esc_html__( 'Active', 'accepta' ) : ( $is_installed ? esc_html__( 'Activate', 'accepta' ) : esc_html__( 'Install', 'accepta' ) ); ?>
<?php echo esc_attr( $plugin['name'] ); ?> <?php echo esc_attr( $plugin['name'] ); ?>