mainpart
Forum Replies Created
-
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] Disable reCaptcha for logged-in usersyou could go the other way and just use shortcodes for logged in or logged out users. That is a little bit tricky since you first have to allow shortcodes inside wpcf7 content by adding following somewhere in functions.php
add_filter( 'wpcf7_form_elements', 'do_shortcode' );
Then you can use any shortcodes that hides content from specific users or roles such as this or this
You can conditionaly show whole wpcf sections, not limiting to the recaptcha tag
- This reply was modified 5 years, 8 months ago by mainpart.
Forum: Plugins
In reply to: [SVG Support] Sorry, this file type is not permitted for security reasons.So here comes the fix – paste it to eny executable part, maybe to your functions.php, and you are done.
function fix_avada_mime_types($mime){ $mime['svg']='image/svg+xml'; return $mime; } add_filter('upload_mimes', 'fix_avada_mime_types', 99);
Forum: Plugins
In reply to: [SVG Support] Sorry, this file type is not permitted for security reasons.Okay. I’ve debugged it with avada and got result.
For a some reason upload of svg file returns with type font/svg, not image/svg
This comes from avada filter mime_types that sets font/svg
Therefore is does not pass hardcoded check of “image/” part in wp_check_filetype_and_ext function of media upload handler.Forum: Plugins
In reply to: [W3 Total Cache] w3tc broke my site to fatal errori’ve outputted last query.
SELECT option_value FROM wp_options WHERE option_name = ‘rewrite_rules’ LIMIT 1looks like it’s irrelevant
Forum: Plugins
In reply to: [W3 Total Cache] w3tc broke my site to fatal errori could use save_queries and output them but 500 error will not allow me to
any other way of logging?Forum: Plugins
In reply to: [W3 Total Cache] w3tc broke my site to fatal errorwell. how could i test quickly?
content of the action seems to be executing well.
i guess it’s the actions running afterForum: Plugins
In reply to: [W3 Total Cache] w3tc broke my site to fatal errorserver is replying normally. as it should with 200 code and appropriate ajax action’s content
Forum: Plugins
In reply to: [W3 Total Cache] w3tc broke my site to fatal errordatabase is cached to XCache
pages are cached to disk.Forum: Plugins
In reply to: [W3 Total Cache] w3tc broke my site to fatal errorhappens on ajax call to admin-ajax.php
Forum: Plugins
In reply to: [ZM Ajax Login & Register] not working due some oop reasonssorry.
my theme did not contain wp_head() call – so all attached actions were missed.Forum: Plugins
In reply to: [User Theme] cannot get it work with 3.7the solution is to use:
$user= wp_get_current_user(); if ( isset($user->ID) && in_array( $user->ID, array( 2,3,4 ) ) ) $template = 'classic';
Forum: Plugins
In reply to: [User Theme] cannot get it work with 3.7the further digging leads me to the fact that it is impossible to use $user_ID template redirection becase on the first call when TEMPLATEPATH constant is defined
define('TEMPLATEPATH', get_template_directory());
in /wp-includes/default-constants.php no active user is set up.
there is no such hook as wpuf_post_submission.
you need:function add_location_info($post_id){ $wpdb->insert( ... insert variables from $_POST ... to $post_id ) } add_action( 'wpuf_add_post_after_insert', "add_location_info" );
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] widget_content not workssorry. got an answer.
also i was unable to delete that urlecoded taxonomy via delete button, till i done this via bulk action