'Settings');
$actions = array_merge($settings, $actions);
} // if ($plugin == $plugin_file) {
return $actions;
} //function yydev_phone_btn_add_settings_link( $actions, $plugin_file ) {
add_filter( 'plugin_action_links', 'yydev_phone_btn_add_settings_link', 10, 5 );
// ================================================
// Add donate page to the plugin menu info
// ================================================
add_filter( 'plugin_action_links', function($actions, $plugin_file) {
static $plugin;
if (!isset($plugin)) { $plugin = plugin_basename(__FILE__); }
if ($plugin == $plugin_file) {
$admin_page_url = esc_url( menu_page_url( 'phone-button', false ) );
$donate = array('donate' => 'Donate');
$actions = array_merge($donate, $actions);
} // if ($plugin == $plugin_file) {
return $actions;
}, 10, 5 );
// ================================================
// output the data into the page front end
// ================================================
if( !is_admin() ) {
include('include/front-end-output.php');
} // if( !is_admin() ) {
// ================================================
// including admin notices flie
// ================================================
if( is_admin() ) {
include_once('notices.php');
} // if( is_admin() ) {