philippze
Forum Replies Created
-
Thanks for the reply @wpswings!
Our solution for now: Downgrade “PDF Invoices & Packing Slips for WooCommerce” to version 3.5.1
I have the same problem.
In an object of the class
Dompdf\Frame
the attribute$style
is not set, but it is required to execute the code.- This reply was modified 9 months, 4 weeks ago by philippze.
Forum: Plugins
In reply to: [Grid] How can I remove the default CSS?Forum: Plugins
In reply to: [Grid] How can I remove the default CSS?The default CSS is registered with an
wp_ajax_
action. To remove it, we must first wait until we are sure the action has taken place – e.g. by using thewp_loaded
hook. Then, we can remove the action we don’t like. I do it like this:add_action('wp_loaded', function () { remove_all_actions('wp_ajax_gridfrontendCSS'); remove_all_actions('wp_ajax_nopriv_gridfrontendCSS'); });
- This reply was modified 7 years, 6 months ago by philippze.
Forum: Plugins
In reply to: [Grid] How can I disable a Grid Metabox?By using the action
grid_metaboxes
. Example:add_action( 'grid_metaboxes', function($result, $grid_id=null, $post_id=null) { $final_results = []; $allowed_types = ['static', 'abstract_list', 'post']; /* default: 'static', 'abstract_list', 'reference', 'post' */ foreach($result as $item) { if (in_array($item['type'], $allowed_types)) { array_push($final_results, $item); } } return $final_results; });
- This reply was modified 7 years, 6 months ago by philippze.
Forum: Plugins
In reply to: [Grid] How can I disable a Grid Box Type?By using the action
grid_boxes_search
.Example:
add_action( 'grid_boxes_search', function($result, $grid_id=null, $post_id=null) { $final_results = []; $allowed_types = ["media", "posts", "facebook_feed", "post", "my_type"]; foreach ($result as $item) { if (in_array($item['type'], $allowed_types)) { array_push($final_results, $item); } } return $final_results; });
- This reply was modified 7 years, 6 months ago by philippze.
Forum: Plugins
In reply to: [WC Fields Factory] Using With Quote Request PluginUpdate: The API has changed.
Now, the filter is called
wcff/load/all_fields
Forum: Plugins
In reply to: [WC Fields Factory] 404 Error when putting item into shopping basketHi Sark,
thank you for your answer! No errors are logged, and I also cannot find anything using the WordPress 404 Debugger https://gist.github.com/soulseekah/2321074.
However, your comment has motivated me to investigate a bit further.
- The Post Variables are correct.
- The 404 Error will not happen when I buy the product on the standard Woocommerce product page.
- It does only happen when I crate the content type “Product Page” with the WPBakery Visual Composer and the commercial theme Agile.
So – it’s not the plugin’s fault ?? If nevertheless you have some rough idea what could cause the strange problem, I’d be curious.
I’ll report this as a bug to the developers of the Agile theme.
Best regards
PhilippForum: Plugins
In reply to: [Invoices for WooCommerce] Croatian translation not showing@tineluss Could you tell me HOW you solved it?
I have quasi the same problem: German translations present in the .po file are not used in the invoice PDF. I’ve created a new .mo file from the .po file, but this did not help.
The canonical tag is neither displayed. I’ll have a look if the theme does anything nasty with the wp_head.
The code of our theme is not public. Maybe you can just give me an idea about what I could check. I understand PHP well, but it’s always easier when you’re pushed into the right direction.
Thanks for your quick support!
We have bought a theme called emulate
https://themeforest.net/item/emulate-multipurpose-responsive-wordpress-theme/6058805At the end of the
<header>
, theres a line
<?php wp_head(); ?>
Hi!
It’s everywhere the same. Front page, static pages, custom post pages, custom page overview.Forum: Hacks
In reply to: top level admin page for editing a certain postthanks, bcworkz, your suggestion works. A very rough implementation looks like this:
add_action( 'admin_init', 'forbid_front_page_creation' ); function forbid_front_page_creation () { $front_page = get_front_page (); $url = $_SERVER['REQUEST_URI']; if (substr_count( $url, 'post-new.php?post_type=front_page')) { wp_die('Please do not create another front page. There exists one already <a href="https://localhost/www.something.de/wp-admin/post.php?post=' . $front_page->ID . '&action=edit">here</a>.'); } }