function render_system_notices_page() { echo ‘ ‘; echo ‘ Systemmeldungen ‘; echo ‘ ‘; do_action( ‘admin_notices’ ); } function register_system_notices_submenu_page() { add_submenu_page( ‘index.php’, // Slug des Hauptmenüs (Dashboard) ‘Systemmeldungen’, ‘Systemmeldungen’, ‘manage_options’, ‘system-notices’, ‘render_system_notices_page’ ); } add_action(‘admin_menu’, ‘register_system_notices_submenu_page’); function move_plugin_notices_to_custom_view() { global…Continue reading
function replace_admin_bar_text() { global $wp_admin_bar; $wp_admin_bar->add_node(array( ‘id’ => ‘my-account’, ‘title’ => ‘👤‘, ‘href’ => get_edit_profile_url(), )); } add_action(‘wp_before_admin_bar_render’, ‘replace_admin_bar_text’, 0); function remove_comments() { global $wp_admin_bar; $wp_admin_bar->remove_menu(‘comments’); } add_action(‘wp_before_admin_bar_render’, ‘remove_comments’, 0); function remove_new_menu() { global $wp_admin_bar; $wp_admin_bar->remove_menu(‘new-content’); } add_action(‘wp_before_admin_bar_render’, ‘remove_new_menu’, 0);Continue reading
add_filter( ‘elementor/frontend/print_google_fonts’, ‘__return_false’ );Continue reading
function remove_pages_from_menu() { if ( current_user_can( ‘editor’ ) ) { remove_menu_page( ‘edit-comments.php’ ); remove_menu_page( ‘edit.php’ ); remove_menu_page( ‘edit.php?post_type=page’ ); remove_menu_page( ‘edit.php?post_type=jet-theme-core’ ); remove_menu_page( ‘tools.php’ ); remove_menu_page( ‘edit.php?post_type=jet-popup’ ); remove_menu_page( ‘edit.php?post_type=jet-form-builder’ ); } } add_action( ‘admin_menu’, ‘remove_pages_from_menu’ ); function remove_link_from_admin_bar( $wp_admin_bar…Continue reading
function custom_trigger_scheduled_export_url() { $secret_key = ( isset( $_GET[‘secret_key’] ) ? sanitize_text_field( $_GET[‘secret_key’] ) : false ); if( empty( $secret_key ) ) { return; } if( $secret_key == ‘SECRET_KEY_PASSED_VIA_CRON’ ) { // This is the Post ID of the Scheduled Export…Continue reading
function custom_woo_ce_cron_export_ftp_switch() { // ftp_put or ftp_fput return ‘ftp_fput’; } add_filter( ‘woo_ce_cron_export_ftp_switch’, ‘custom_woo_ce_cron_export_ftp_switch’ );Continue reading
function custom_woo_ce_cron_export_email_wp_mail_failure_notice() { // Turn off the error notice return false; } add_filter( ‘woo_ce_cron_export_email_wp_mail_failure_notice’, ‘custom_woo_ce_cron_export_email_wp_mail_failure_notice’ );Continue reading
add_filter( ‘aioseo_schema_output’, ‘add_author_name_when_missing’ ); function add_author_name_when_missing( $schema ) { foreach ( $schema as &$schemaItem ) { if ( isset($schemaItem[‘author’]) ) { unset($schemaItem[‘author’]); } } return $schema; }Continue reading
/** * @link https://library.wpcode.com/snippet/r5plvkeo/ */ add_filter( ‘simpay_payment_details_template_tags’, function( $smart_tags ) { $smart_tags[] = ‘subtotal’; return $smart_tags; } ); add_filter( ‘simpay_payment_confirmation_template_tag_subtotal’, function( $value, $payment_confirmation_data ) { $subscription = current( $payment_confirmation_data[‘subscriptions’] ); if ( $subscription ) { $payment = $subscription->latest_invoice->payment_intent; } else…Continue reading