How to modify or create custom contact form 7 select options [closed]

This is not possible with Contact Form 7 plugin. Instead you can make use of the dynamic_dropdown tag offered by the CF7 plugin extension, CF7 Smart Grid-layout. This allows you to create a dynamic dropdown, which has an option to filter the drodown’s options, and therefore create a custom set of options, add_filter(‘cf7sg_dynamic_dropdown_custom_options’, ‘custom_options’); function … Read more

Easy WP SMTP plugin test email failed

If you want to configure Gmail account, you need to fill Encryption type: SSL Port: 465 Requires Authentication: Yes Or you can try https://wordpress.org/plugins/wp-mail-bank/. This would help you in authenticating the Gmail account using oAuth.

Hide DIV if empty – Plugin Gallery

This is just a matter of reorganising your PHP: $gallery = do_shortcode(‘[aigpl-gallery-slider id=”1080″ dots=”false” arrows=”false”]’); if ( ! empty( $gallery ) ) { echo ‘<div id=”photos” class=”block” style=”margin-top: 50% !important;”>’ … echo $gallery; echo ‘</div>’; }

Error with get_price (and others) in self-written plugin to show price

The error Is coming from the file: /wp-content/plugins/woocommerce-display-various/display_various.php Line 180. Disable the plugin ‘woocommerce-display-various’ and check if the problem still exists. Your code Why are you using output buffering (ob_start())? Furthermore you’re not using it correctly. There’s alot to improve on your code… See my changes: add_action(‘init’,’add_custom_price_shortcodes’); function add_custom_price_shortcodes() { if ( class_exists( ‘woocommerce’ ) … Read more

Plugin – Admin menu page broken url

The menu is generated by the function _wp_menu_output. If you look at the place where the links are generated (currently lines 158-162 and 170-174) you see that the admin.php?page= part is omitted under certain circumstances. One of those is an empty $menu_hook. The variable menu_hook is filled by a call to get_plugin_page_hook, which will return … Read more

How to remove a class function from a plugin by using remove_action()?

[ Nova_Restaurant::init(), ‘sort_menu_item_queries_by_menu_order’ ] You want something of type callable, that matches what was given when add_action. There are only a handful of valid callables: [ ‘my_function_name’ ] aka my_function_name(); [ ‘my_class_name’, ‘my_static_function’ ] aka my_class_name::my_stati_function() [ $object, ‘the_objects_function’ ] aka $object->the_objects_function [ function() {} ] an anonymous function or closure So some translation: remove_action(‘parse_query’,’WM_Nova_Restaurant’, … Read more