Julian Weiland
Forum Replies Created
-
Forum: Plugins
In reply to: [Share a Draft] Custom Post Types Support@sdwi I just had the time to check this again and I found a solution:
https://gist.github.com/derweili/22687cbeffb5f0a50bf7c9c5df9a9633
You need to manipulate two filters:
One filter to change the posts in the dropdown.
And another filter to manipulate the SQL query directly.
This plugin hooks in very early at theposts_results
where WordPress only searches for the defaultpost
post type.This must be extended by directly manipulating the SQL Query using the
posts_clauses_request
Filter.Forum: Plugins
In reply to: [Share a Draft] Custom Post Types Support@sdwi unfortunately, no.
I just looked into the code and found the place where the user data is loaded:
lib/UserBookingData.php:159
/** * Constructor. * * @param $form_id */ public function __construct( $form_id ) { $this->form_id = $form_id; $this->cart = new Cart( $this ); $this->chain = new Chain(); // If logged in then set name, email and if existing customer then also phone. $current_user = wp_get_current_user(); // this is where the WordPress user data is loaded if ( $current_user && $current_user->ID ) { $customer = new Entities\Customer(); if ( $customer->loadBy( array( 'wp_user_id' => $current_user->ID ) ) ) { $date = explode( '-', $customer->getBirthday() );
If the
$current_user
variable could be changed to false, the data would not be loaded from the WordPress User.Unfortunately, there is no filter to modify this. Could you please add a filter here.
You could implement it like this:
// If logged in then set name, email and if existing customer then also phone. $load_user_data = apply_filters( 'bookly_user_booking_data_load_wp_user_data', true ); $current_user = $load_user_data ? wp_get_current_user() : false; if ( $current_user && $current_user->ID ) {
This would not change anything for all existing users, but would add additional options for developers.
- This reply was modified 3 years, 6 months ago by Julian Weiland.
- This reply was modified 3 years, 6 months ago by Julian Weiland.
Yes, that does work, but in Gutenberg this is only possible with a group block.
Depending on the theme this may has special styling.Because the anchor support is build into Gutenberg editor and just need to be enabled using the blocks
attributes
property, I thought this could be an easy improvement for the HubSpot forms block.I get the same error, with WordPress 5.6
Here is the more detailed error message:
Error: An error occurred while running 'mapSelect': Cannot read property 'name' of null The error may be correlated with this previous error: TypeError: Cannot read property 'name' of null at serializeBlock (https://digital-habitat.io/wp-includes/js/dist/blocks.js?ver=65abb57f00d1d2ab3d3b16331cbbf560:9334:25) at https://digital-habitat.io/wp-includes/js/dist/blocks.js?ver=65abb57f00d1d2ab3d3b16331cbbf560:9356:12 at Array.map (<anonymous>) at serialize (https://digital-habitat.io/wp-includes/js/dist/blocks.js?ver=65abb57f00d1d2ab3d3b16331cbbf560:9355:61) at Object.current (https://digital-habitat.io/wp-content/plugins/block-pattern-builder/public/js/editor.js?id=0fa3860205cf6b634f29:1:2467) at onStoreChange (https://digital-habitat.io/wp-includes/js/dist/data.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:3694:46) at https://digital-habitat.io/wp-includes/js/dist/data.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:3721:9 at https://digital-habitat.io/wp-includes/js/dist/data.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2813:14 at Array.forEach (<anonymous>) at globalListener (https://digital-habitat.io/wp-includes/js/dist/data.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2812:15) Original stack trace: at useSelect (https://digital-habitat.io/wp-includes/js/dist/data.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:3669:13) at render (https://digital-habitat.io/wp-content/plugins/block-pattern-builder/public/js/editor.js?id=0fa3860205cf6b634f29:1:2324) at renderWithHooks (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:14938:20) at updateFunctionComponent (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:17169:22) at beginWork (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:18745:18) at HTMLUnknownElement.callCallback (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:182:16) at Object.invokeGuardedCallbackDev (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:231:18) at invokeGuardedCallback (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:286:33) at beginWork$1 (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:23338:9) at performUnitOfWork (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:22289:14)
Forum: Plugins
In reply to: [Cachify] How to exclude built-in pages in WordPress themes?This depends on how those pages are added.
If those pages are actually custom post types, you can add their
post_id
to the exclusions list.If those pages are added through custom rewrite rule, you can’t exclude those pages using the plugin settings but by using filters.
You can use the
cachify_skip_cache
filter to skip cache generation.Setting a
DONOTCACHEPAGE
constant totrue
also skips cache generation.Forum: Plugins
In reply to: [The Events Calendar] Please add support for multilingualpress@dinamiko unfortunately it’s not only stored as a post meta but also in a custom table. I’m don’t know why.
I already tried to use the linked workflow together with the plugins build in
tribe_update_event()
function.
But it’s not working as expected. The Date/Time is not updated.Maybe because of wrong usage of this function on my side.
- This reply was modified 5 years, 4 months ago by Julian Weiland.
Forum: Reviews
In reply to: [Block Layouts] At lastThank you for you feedback:
The Lorem Ipsum Sidebar is another Plugin from me:
https://www.ads-software.com/plugins/gutenipsum/I found out that this error only occurs when wenn comments are disabled per Post-Type with posts selected.
It Error does not occure when the options “remove everywhere” is selected.
Die
apply_filter
Funktion kann zwar nur einen Parameter haben, auf den die Filter angewendet werden, zus?tzliche Parameter sind aber dennoch m?glich.
Diese k?nnen dann von den Funktionen verwendet werden, die den Filter nutzen.Siehe hier unter “Parameter”
$var,...
-> Additional variables
https://developer.www.ads-software.com/reference/functions/apply_filters/Die Kompatibilit?t wird das nicht kaputt machen, da die zus?tzlichen Parameter einfach igoniert werden, wenn sie nicht verwendet werden.
Die ?nderung um die es mir geht, w?re in der Datei class-sis-handball-public.php in Zeile 555
$data = apply_filters('sis_handball_table_data', $data);
würde ge?ndert zu
$data = apply_filters('sis_handball_table_data', $data, $atts);
- This reply was modified 6 years, 8 months ago by Julian Weiland.
Forum: Plugins
In reply to: [SIS Handball] Das ausgew?hlte Team wird nicht hervorgehobenOkay, danke für die Info und die mega schnelle Antwort.
Das mit den IDs hatte ich nicht ganz verstanden. Hatte gedacht es reicht aus, die ID der Liga zu nehmen und dann den Verein auszuw?hlen.
Aber jetzt funktioniert es.
Verstehe ich das richtig, dasss es bei jeder neuen Saison, neue IDs gibt und man daher alle Shortcodes anpassen muss?
Forum: Plugins
In reply to: [Language Fallback] Deutsch Sie not possible 1st choiceprobably not a issue with this plugin. Maybe with some other plugins you have installed.
I have several projects set up as you described it, i had no problems with that.
Forum: Plugins
In reply to: [Messengerbot for WooCommerce] Custom order statusesWhen/Where do you receive this error?
Forum: Plugins
In reply to: [Messengerbot for WooCommerce] Custom order statusesWhen the messenger bot plugin is activated, you can find an additional metabox on the edit screen of the custom order statuses.
The text you paste there will be send via messenger.Forum: Plugins
In reply to: [Messengerbot for WooCommerce] Custom order statusesHi, yes it’s possible to use this plugin for custom order status, too.
How do you set up those order status?
The Plugin supports the WooCommerce Order Status & Actions Manager from codecanyonIf you set up the custom order status on another way, take a look into the code how the plugin hooks into the default status here: https://github.com/derweili/fb-messenger-bot-for-woocommerce/blob/master/inc/woocommerce-order-status-messages.php
If you know a bit php this should eaily be done.