<?php
/*
Plugin Name: Remove GeneratePress Footer Link
Description: Automatically removes the GeneratePress footer link.
Version: 1.1
Author: gee
*/

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}

// Function to remove the GeneratePress footer link.
function remove_generatepress_footer_credit() {
    // Remove the default GeneratePress footer credits.
    remove_action( 'generate_footer', 'generate_construct_footer' );

    // Optionally add your own footer credits or leave empty to remove completely.
    add_action( 'generate_footer', 'custom_footer_credit' );
}

function custom_footer_credit() {
    // Add your custom footer credit here if needed.
    // For example:
    // echo '<div class="custom-footer-credit">Your Custom Footer Credit</div>';
}

// Hook the function to 'after_setup_theme' action.
add_action( 'after_setup_theme', 'remove_generatepress_footer_credit' );