BoUk
Forum Replies Created
-
Forum: Plugins
In reply to: [Classic Editor] Most Used Post Categories not savingHi @azaozz,
Thanks for your input here. 100% agree with everything. And yes, your assumption about reverting changes made in Walker_Category_Checklist is correct. I just had to come up with some fix for the time being. This bug is especially annoying for those publishers, when they are using loads of categories. In order to correctly associate post with chosen categories, they need to switch view to ‘All Categories’ where they need to scroll through quite long list.Forum: Plugins
In reply to: [Classic Editor] Most Used Post Categories not savingExcellent! Thanks for confirming @geekzilla83. Feel free to download plugin from here https://wpadvisor.co.uk/plugins/category-checklist-fix.zip
Any issues, let me know and I’ll do my best.Forum: Plugins
In reply to: [Classic Editor] Most Used Post Categories not savingHello,
I’ve created small plugin which applies this quick fix automatically. Have tried to submit that to the official WP repository, but there seems to be a long waiting queue for approval. Let’s see.
Either way, if anybody fancy, I am happy to provide this plugin directly.Forum: Plugins
In reply to: [Classic Editor] Most Used Post Categories not savingHi all,
I’ve been experiencing similar issue on pretty much all sites which I upgraded to WP 6.7 and which are using Classic editor. The core of the problem is coming from slightly adjusted markup used for rendering category list in admin screen widget.
As a quick fix, adding this piece of code into the functions.php of your active theme should solve the problem. Give that a try and let me know.
add_filter('wp_terms_checklist_args', 'wpa_custom_walker_category_checklist');
function wpa_custom_walker_category_checklist($args)
{
$args['walker'] = new Wpa_Custom_Walker_Category_Checklist();
return $args;
}
if ( !class_exists('Walker_Category_Checklist') )
require_once ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php';
/**
*
*/
class Wpa_Custom_Walker_Category_Checklist extends Walker_Category_Checklist
{
/**
* [start_el description]
* @param [type] &$output [description]
* @param [type] $data_object [description]
* @param integer $depth [description]
* @param array $args [description]
* @param integer $current_object_id [description]
* @return [type] [description]
*/
public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0 ) {
// Restores the more descriptive, specific name for use within this method.
$category = $data_object;
if ( empty( $args['taxonomy'] ) ) {
$taxonomy = 'category';
} else {
$taxonomy = $args['taxonomy'];
}
if ( 'category' === $taxonomy ) {
$name = 'post_category';
} else {
$name = 'tax_input[' . $taxonomy . ']';
}
$args['popular_cats'] = ! empty( $args['popular_cats'] ) ? array_map( 'intval', $args['popular_cats'] ) : array();
$class = in_array( $category->term_id, $args['popular_cats'], true ) ? ' class="popular-category"' : '';
$args['selected_cats'] = ! empty( $args['selected_cats'] ) ? array_map( 'intval', $args['selected_cats'] ) : array();
if ( ! empty( $args['list_only'] ) ) {
$aria_checked = 'false';
$inner_class = 'category';
if ( in_array( $category->term_id, $args['selected_cats'], true ) ) {
$inner_class .= ' selected';
$aria_checked = 'true';
}
$output .= "\n" . '<li' . $class . '>' .
'<div class="' . $inner_class . '" data-term-id=' . $category->term_id .
' tabindex="0" role="checkbox" aria-checked="' . $aria_checked . '">' .
/** This filter is documented in wp-includes/category-template.php */
esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</div>';
} else {
$is_selected = in_array( $category->term_id, $args['selected_cats'], true );
$is_disabled = ! empty( $args['disabled'] );
$output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" .
'<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="' . $name . '[]" id="in-' . $taxonomy . '-' . $category->term_id . '"' .
checked( $is_selected, true, false ) .
disabled( $is_disabled, true, false ) . ' /> ' .
/** This filter is documented in wp-includes/category-template.php */
esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</label>';
}
}
}Forum: Plugins
In reply to: [Use Bunny DNS] ExecutionGood morning @tony-franco,
And thanks for providing additional details. I’ve taken a quick look and all the settings I am available to check seem to be fine. Perhaps one more thing. Log with more details is stored in following file:
/wp-content/plugins/use-bunny-dns/cdn-purge.log
Example entry looks like this:
[2024-10-01 06:08:30] cdn-purge.INFO: Starting purge on [draft -> publish]: Triggered by Post ID: 65842
[2024-10-01 06:08:30] cdn-purge.INFO: 204 [No Content]Can you please double-check file doesn’t exist in specified location? In case it doesn’t exist, can you manually create it and give it write permissions?
If all of the above fails, feel free to get in touch directly at [email protected] and I’ll be happy to assist you more.
Take it easy!
PetrForum: Plugins
In reply to: [Use Bunny DNS] ExecutionGood morning @tony-franco,
Any chance to share URL of your site? I am personally using this plugin and don’t seem to experience issues you are describing.
Your config seems to be right so it’s most likely something specific to your setup. Happy to have a look.
Forum: Plugins
In reply to: [GoPay for WooCommerce] Compatibility with HPOSGood morning @gopayplugins,
Thanks for the update, but I am not sure this problem has been fully resolved by the latest changes introduced.
Looking into the codebase, I see there’s been added following piece of code:
add_action( 'before_woocommerce_init', function() {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
} );This indeed does solve the problem in terms of getting rid of error message in admin and allowing to enable HPOS, but I don’t think the actual problematic parts in codebase has been updated to work reliably with HPOS.
Please see the following docs – part about ‘Functions for getting/setting order & order meta‘ – https://webkul.com/blog/woocommerce-plugin-high-performance-order-storage-compatible/
They are clearing saying there that functions such as
update_post_meta, add_post_meta, delete_post_meta, get_post_meta
should be replaced.So for instance
class-gopay-gateway-api.php
line 447:$gopay_transaction_id = get_post_meta( $order_id, 'GoPay_Transaction_id', true );
I believe this should be replaced by something like this (correct me if I am wrong @vasikgreif ):
$order = wc_get_order( $order_id );
$gopay_transaction_id = $order->get_meta( 'GoPay_Transaction_id', true );Thanks for checking again.
- This reply was modified 5 months, 3 weeks ago by BoUk.
Forum: Plugins
In reply to: [GoPay for WooCommerce] Compatibility with HPOSHi,
It’s been nearly 5 months since the initial question. Any update on that?
Thanks a lot.
Forum: Plugins
In reply to: [PageViews Counter] how to view the counts statsHi @himalayande,
Once you activate the plugin, pageviews will appear in WP Admin as another column in Pages and Posts section.
Forum: Plugins
In reply to: [Snack Missed Schedule] Canonical pagesHi @marlimant,
I am not sure if this specific problem you are experiencing is related to the missed schedule plugin – at least provided snapshot from the log doesn’t suggest that.
I am sorry, but I am afraid I won’t be able to help with this.
Best
Forum: Plugins
In reply to: [Snack Missed Schedule] WooCommerce products not publishingHi @carolineelisa,
Just wanted to let you know, that I’ve just released new version which is checking missed schedules on all post types defined, so should be now working for Woo schedules as well.
Forum: Plugins
In reply to: [Snack Missed Schedule] WooCommerce products not publishingHi @carolineelisa,
This currently works with post type ‘post’ only, but making it work with any other post type defined within the WP instance shouldn’t be too difficult to sort.
I’ll surely include that into the next release.
Best
Cheers guys,
This resolved an issue for me.Best
Thanks @fscode,
Support ticket is already with you – https://support.fs-code.com/cabinet/ticket/22200
best
Forum: Reviews
In reply to: [Snack Missed Schedule] best plugin for missed scheduleHi @yangqiceng,
Really thanks a lot for your kind words and will definitely consider your suggestion. I do have something available already, but it’s just not publicly available at the moment. You are right indeed that many solutions out there are simply too heavy. Similarly to another common performance issue when there’s implemented pageviews counter. In case you are interested, it’s something I have already tried to cover a bit – https://www.ads-software.com/plugins/pageviews-counterHave a good day and thanks again. It means a lot.