/** * 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
// Shortcode to get post date function g9_get_post_date() { return ‘‘ . get_the_date() . ‘‘; } add_shortcode(‘post_date’, ‘g9_get_post_date’);Continue reading
remove_filter( ‘comment_text’, ‘make_clickable’, 9 );Continue reading
add_filter( ‘astra_v4_block_editor_compat’, “__return_true” );Continue reading
/** * Plugin Name: Admin Panel Settings * Description: This plugin contains your admin panel settings. * Author: NoBull. * Version: 1.0 */ // Remove Powered By WP Bakery Builder Snippet add_action(‘wp_head’, ‘removebakery’, 1); function removebakery() { if ( class_exists(…Continue reading
add_filter( ‘automatic_updater_disabled’, ‘__return_true’ );Continue reading
/** * 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
/** * 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
/** * Start Tracking Tags **/ function hook_gtm_header() { if( !current_user_can(‘administrator’) && !current_user_can( ‘author’ ) && !current_user_can( ‘editor’ ) ) { ?>Continue reading
function open_external_URL_in_a_new_tab() { ?>Continue reading