Change Admin Panel Footer Text

add_filter( ‘admin_footer_text’, function ( $footer_text ) { // Edit the line below to customize the footer text. $footer_text = ‘Powered by WordPress | WordPress Tutorials: WPBeginner‘; return $footer_text; } );Continue reading

Disable Automatic Updates

// Disable core auto-updates add_filter( ‘auto_update_core’, ‘__return_false’ ); // Disable auto-updates for plugins. add_filter( ‘auto_update_plugin’, ‘__return_false’ ); // Disable auto-updates for themes. add_filter( ‘auto_update_theme’, ‘__return_false’ );Continue reading

Allow SVG Files Upload

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Customize Action Scheduler Retention Period

/* Customize the Action Scheduler Retention Period * * Original doc: https://wpmailsmtp.com/docs/how-to-troubleshoot-action-scheduler-issues-wp-mail-smtp-2-1-1/ */ function custom_as_retention_period() { // Changes default 30-day retention to 7-days return WEEK_IN_SECONDS; } add_filter( ‘action_scheduler_retention_period’, ‘custom_as_retention_period’ );Continue reading

JetAppointment – Customize the time slot format

// Customize the time slot format for JetAppointment. // This filter modifies the format of time slots to display only the start time. add_filter( ‘jet-apb/time-slots/slots-html/slot-time-format’, function( $format ) { $format = ‘%4$s’; return $format; } );Continue reading

HTG

[wpgetapi_endpoint api_id=’HomeToGo’ endpoint_id=’HTG’ debug=’false’]Continue reading

Remove plugin deactivation

// Remove plugin deactivation for all users except ‘rubberduckers’ function rubberduckers_disable_plugin_deactivation($actions, $plugin_file, $plugin_data, $context) { // Get the current user $current_user = wp_get_current_user(); // Check if the current user’s username is NOT ‘rubberduckers’ if ($current_user->user_login !== ‘rubberduckers’) { // List…Continue reading