Category: Admin
Code for importing theme files from plugin
/** * Import an entire folder from a plugin into the WordPress theme. * * @param string $plugin_folder Plugin folder path. * @param string $theme_folder Theme folder path. * * @return bool True on success, false on failure. */ function…Continue reading
Add Theme Supports
add_editor_style( ‘style-editor.css’ ); add_theme_support( ‘appearance-tools’ ); add_theme_support( ‘align-wide’ ); add_theme_support( ‘responsive-embeds’ ); add_theme_support( ‘post-formats’, array( ‘aside’, ‘gallery’, ‘link’, ‘image’, ‘quote’, ‘status’, ‘video’, ‘audio’, ‘chat’ ) // WordPress supports the following post formats. These formats cannot be changed by the average…Continue reading
WPCode Functions
/** * WPCode Admin UI Enhancements * – Skip library screen * – Set snippets per page * – Show active snippets first * – Adjust column widths and header wrapping * – Format Created column */ // 1. Skip…Continue reading
WPCode Admin Number of Snippets (copy)
add_filter( ‘wpcode_snippets_per_page’, function() { return 25; });Continue reading
Change Method Label (copy)
add_filter( ‘woocommerce_cart_shipping_method_full_label’, ‘wcv_override_vendor_shipping_label’, 10, 2 ); function wcv_override_vendor_shipping_label( $label, $method ){ $label = ‘Flat-rate’; // <- Change this to your preferred prefix $has_cost = 0 cost; $hide_cost = ! $has_cost && in_array( $method->get_method_id(), array( ‘free_shipping’, ‘local_pickup’ ), true ); if…Continue reading
specific-element-custom-font.css
div#om-{{id}} .my-headline * { font-family: “Proxima Nova”, Helvetica, “Helvetica Neue”, Arial, sans-serif !important; }Continue reading
Editing the .htaccess File
php_value memory_limit 256MContinue reading
Connect site to Google
google-site-verification: google476d5b0743fce814.htmlContinue reading
Connect site to Google
<meta name=”google-site-verification” content=”dROcFq5p2vjpkrcgXjTN7TwYZMWziiQtEZuubOGmbb8″ />Continue reading