in functions: // get the the role object $roleobject = getrole( ‚editor‘ ); // …
first create a new page, name it 404 Fehler Seite then add this to …
get maps api key insert into functions function myacfinit() { acfupdatesetting(‚googleapikey‘, ‚XXX‘); } addaction(‚acf/init‘, …
360view, static html stand alone player for 360 product images: https://codecanyon.net/item/view360-3d-360-degree-product-viewer/ cloud alternative: https://sirv.com/
create page-redirect.php then just select this page template for the parent page
// allow SVG uploads, but be careful, SVG can contain JS …. // just …
for new postings setttings -> discussion default article settings -> uncheck „ALLOW link notifications …
create sidebar2.php in templates functions.php registersidebar(2, array ( ’name‘ => ( ‚Sidebar Widget Area‘, …
addaction( ‚aftersetuptheme‘, ‚woocommercesupport‘ ); function woocommercesupport() { addthemesupport( ‚woocommerce‘ ); }
download the script masonry.min.js from masonry.desandro.com copy script to theme/js folder center masonry layout …
put this in functions.php function hideupdatenoticetoallbutadminusers() { if (!currentusercan(‚updatecore‘)) { removeaction( ‚adminnotices‘, ‚updatenag‘, 3 …
put this in functions.php removefilter( ‚thecontent‘, ‚wpautop‘ ); removefilter( ‚theexcerpt‘, ‚wpautop‘ );
phpmyadmin -> wpusers -> click EDIT userpass -> set function to MD5, value to …
problem: some plugin puts the hidden form fields in the header solution: put the …
google spreadsheets, upload excel csv (kein xls wegen makros) download csv and import in …
in wp-content/themes/mytheme/library/js $(‚.short-description‘).each(function() { var txt = $(this).text(); var img = ‚‚ var html …
$fields[‚billing‘][‚partytime‘] = array( ‚label‘ => (‚party Time‘, ‚woocommerce‘), ‚placeholder‘ => x(‚partytime‘, ‚placeholder‘, ‚woocommerce‘), ‚required‘ …
// Auto Complete all WooCommerce orders. addaction( ‚woocommercethankyou‘, ‚customwoocommerceautocompleteorder‘ ); function customwoocommerceautocompleteorder( $orderid ) …
addfilter( ‚bodyclass‘, ‚myneatbodyclass‘); function myneatbodyclass( $classes ) { if ( ispage(7) || iscategory(5) || …
custom field -> add new -> Einheit: Stk dann in functions addfilter( ‚woocommercepriceformat‘, ‚overwritewoocommercepriceformat‘, …
disable all payment methods, except cash on delivery (rename fields too) open /checkout/review-order.php and …
copy themes page.php and rename it woocommerce.php page.php woocommerce.php WOOCOMMERCE FOLDER/ replace the loop …
// remove images from shop loop removeaction( ‚woocommercebeforeshoploopitemtitle‘, ‚woocommercetemplateloopproductthumbnail‘, 10 );
create new folder named woocommerce and copy all templates from /woocommerce/templates/ to it. src …
https://github.com/dgrundel/woo-product-importer use google excel export because of UTF-8