Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Mats,
No problem. I've sent you the refund.
If you need the plugins in the future, you're always welcomed here.
Anh
Anh Tran
KeymasterHi,
Thanks for your suggestion. We understand the benefits of using semantic versions with Composer and it's in our list of TODOs. Currently, it relates to our CI/CD to auto deploy plugin versions to the server and also the license management, so we couldn't make big changes for now. But we'll investigate more on that and will try to do.
Anh Tran
KeymasterJust added 2 hooks for
addanddeleteaction:do_action( 'mb_relationships_add', $from, $to, $type, $order_from, $order_to ); do_action( 'mb_relationships_delete', $from, $to, $type );Anh Tran
KeymasterHi Didou,
To hide meta boxes, I think CSS probably is the fastest way. You can also hook to
rwmb_meta_boxesor WP'sadd_meta_boxeshook to remove them but I think it requires more code.Regarding the action hooks, I can add them for you. But do you want to make a contribution on Github? So I can add a credit for you as a thanks!
Anh Tran
KeymasterHi,
I think there's a way to prevent the MB Relationships from saving to the database using the
save_fieldparameter for field settings (I haven't tested it yet). This param tells Meta Box to not save field value to the DB. So, you can try it by specify it explicitly in thefieldparam of the relationship.add_action( 'mb_relationships_init', function () { MB_Relationships_API::register( [ 'id' => 'class_present_to_student', 'from' => [ 'post_type' => 'class', 'field' => [ 'save_field' => false, ], ], 'to' => [ 'post_type' => 'student', 'field' => [ 'save_field' => false, ], ], ] ); } );Anh Tran
KeymasterHi Suraj,
Would you mind sharing with us what are your needs? Maybe we can help you use the MB Group extension to complete the task.
Anh Tran
KeymasterHi Michael,
Can you please share the screenshot of the view(s) screen? I think there is something that we miss in the discussion that might cause the error.
Thanks,
AnhAnh Tran
KeymasterHey guys, it's just the browser cache problem. Please use Ctrl-F5 or clear the browser cache and refresh again.
June 2, 2020 at 8:45 AM in reply to: ✅Missing text-domain "Click here to reset your password" #20163Anh Tran
KeymasterThanks for your feedback. I've just fixed it and will release a new version soon.
June 1, 2020 at 2:25 PM in reply to: ✅Reciprocal relationships do not follow the order of the admin #19943Anh Tran
KeymasterHi,
I commented on the PR. Let's keep discussing over there for better reference of the code.
Thanks for your help!
Anh Tran
KeymasterHi Steve,
It's best to use MB Include Exclude.
Anh Tran
KeymasterPlease try again. There was a small problem with your account which we've fixed.
Anh Tran
KeymasterHi Dave,
It might relate to how
rwmb_metawork with custom tables. We implemented a cache layer for the custom table storage, the code is in theinc/class-rwmb-table-storage.php, which is like this:public function get( $object_id, $meta_key, $args = false ) { if ( is_array( $args ) ) { $single = ! empty( $args['single'] ); } else { $single = (bool) $args; } $default = $single ? '' : array(); $row = MB_Custom_Table_Cache::get( $object_id, $this->table ); return ! isset( $row[ $meta_key ] ) ? $default : maybe_unserialize( $row[ $meta_key ] ); }In this case, as you already use
$wpdbto update data, I'd suggest using it to get data to avoid the caching problem.Anh Tran
KeymasterStrange, I see it's similar to my setup. I can think only about the downloaded version via Composer. Can you check the files in the vendor folder to see if they're the same as in the individual plugin?
Anh Tran
KeymasterHi Joe,
I've just set up a simple test plugin with nothing than just Meta Box + MB Settings Page and I see the backup & restore field works properly. Please see my video for details:
-
AuthorPosts