Category: Admin
HubSpot tracking code
bp-custom.php Multiblog
define( ‘BP_ENABLE_MULTIBLOG’, true );Continue reading
Output og:image that uses the Large Size Image
add_filter( ‘aioseo_thumbnail_size’, function( $imageSize ) { return ‘large’; } );Continue reading
Removing Otter Pro upsell notification
$notifications = get_option( ‘themeisle_blocks_settings_notifications’, array() ); if ( ! isset( $notifications[‘dashboard_upsell’] ) || $notifications[‘dashboard_upsell’] !== true ) { $notifications[‘dashboard_upsell’] = true; update_option( ‘themeisle_blocks_settings_notifications’, $notifications ); }Continue reading
Hide All Admin Notices in Sidebar
// Hide all admin notices in a collapsible sidebar function hide_all_admin_notices_in_sidebar() { ?>Continue reading
Upload font files to media library (copy)
add_filter( ‘upload_mimes’, function( $mimes ) { $mimes[‘woff’] = ‘application/x-font-woff’; $mimes[‘woff2’] = ‘application/x-font-woff2’; $mimes[‘ttf’] = ‘application/x-font-ttf’; $mimes[‘svg’] = ‘image/svg+xml’; $mimes[‘eot’] = ‘application/vnd.ms-fontobject’; return $mimes; } );Continue reading
Remove the author of an article
add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $graphs ) { if ( is_singular( ‘post’ ) ) { foreach ( $graphs as $index => $graph ) { if ( ‘Article’ === $graph[‘@type’] ) { unset( $graphs[ $index ][‘author’] ); } if (…Continue reading
Remove datePublished and dateModified properties from the Article schema for Posts
add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $schema ) { foreach ( $schema as $index => $graphData ) { if ( empty( $graphData[‘@type’] ) ) { continue; } $type = strtolower( $graphData[‘@type’] ); switch ( $type ) { case ‘article’: case…Continue reading
Remove the Article schema from Posts
add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $graphs ) { if ( is_singular( ‘post’ ) ) { foreach ( $graphs as $index => $graph ) { if ( ‘Article’ === $graph[‘@type’] ) { unset( $graphs[ $index ] ); } } }…Continue reading