Add custom menu item type
I decided for now, I will use a custom css class and detect it in a wp_get_nav_menu_items filter. From there, I can get the data I need to set the URL.
I decided for now, I will use a custom css class and detect it in a wp_get_nav_menu_items filter. From there, I can get the data I need to set the URL.
Use namespaces, but check the PHP version on the server side and deactivate the plugin with a useful error message if the requirements aren’t met. If you look at the official statistics, you can see how many installations are still running on outdated WordPress versions. But almost all new plugins require the latest WordPress version, … Read more
First of all… It is a really bad idea to modify existing plugin. But if you really have to do this, then you can hide update link with this code (this one works for Yoast SEO): function remove_update_notification_link($value) { if ( array_key_exists(‘wordpress-seo/wp-seo.php’, $value->response) ) { $value->response[ ‘wordpress-seo/wp-seo.php’ ]->package=””; } return $value; } add_filter(‘site_transient_update_plugins’, ‘remove_update_notification_link’); The … Read more
Afaik: There’s a (hidden?) button for TinyMCE that cleans up stuff imported from MS Word. You click the button insert (copy/paste) the stuff from Word and TinyMCE should do the rest. Second: You can export as XML from InDesign. Why not use that? Pulling in XML data should be much easier. I’m pretty sure that … Read more
I recently struggled with a similar issue, so I’ll offer a couple of additional pieces of information for people who search for this question. The first step you should take when trying to force SSL for Admin of your site is to follow the directions in the codex . This means defining the FORCE_SSL_ADMIN option … Read more
You could the following to achieve this in the “WordPress way”: Add code via plugin or child theme In the code add a wp cron task The task should get the file with wp_remote_get Parse the xml file with SimpleXMLElement Update the content to meta fields of the post with update_post_meta You could display the … Read more
How to implement a customizable free OpenID authentication?
I ended up using code from this post on WordPress.org Place this into my wp-config.php file if(is_admin()) { add_filter(‘filesystem_method’, create_function(‘$a’, ‘return “direct”;’ )); define( ‘FS_CHMOD_DIR’, 0751 ); }
There’s a pretty good plugin called “Onlinebooking Calendar”. It’s a freemium model, where premium has different levels depending on the job and the budget. So far I’ve one outstanding project where I’ll use it. Said in general, the code isn’t written that bad, the UI is pretty good and the first dummy tests in a … Read more
are we talking about the single product view or the product archive pages (shop,categories)? because the text beside the checkbox/option states, roughly translated: »activate ajax-checkout-button on product archive pages« and on all the installations i did so for, that is the way its working – ajax checkout on the archives, but not on the single … Read more