Settings page added for every plugin
-
Mautic adds a ‘settings’ link to every plugin on the plugins page. The following code (from line 51 of wpmautic.php on V2.3.0) does not check what plugin entry is being checked, so every installed plugin gets an entry to /wp-admin/options-general.php?page=wpmautic
/** * Settings Link in the 'Installed Plugins' page * * @param array $links array of plugin action links. * * @return array */ function wpmautic_plugin_actions( $links ) { if ( function_exists( 'admin_url' ) ) { $settings_link = sprintf( '<a href="%s">%s</a>', admin_url( 'options-general.php?page=wpmautic' ), __( 'Settings' ) ); // Add the settings link before other links. array_unshift( $links, $settings_link ); } return $links; } add_filter( 'plugin_action_links', 'wpmautic_plugin_actions', 10, 2 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Settings page added for every plugin’ is closed to new replies.