176 liens privés
Just add the following filter to your plugin or child theme:
/**
- Filter CF7 form.
- @param string $form CF7 form.
-
@return string
*/
function my_wpcf7_form_elements( $form ) {
if ( false === strpos( $form, 'some unique string' ) ) {
$form = preg_replace( '#<span class="wpcf7-form-control-wrap hcap_cf7-h-captcha-invalid">.+?<input type="hidden" name="_wp_http_referer".+?/>#s', '', $form );
}return $form;
}
add_filter( 'wpcf7_form_elements', 'my_wpcf7_form_elements', 20 );`
It removes hCaptcha from any form in which cannot be found some unique string (‘some unique string’ in the example).
wp plugin install advanced-rich-text-tools --activate
function wpdc_add_custom_gutenberg_color_palette() {
add_theme_support(
'editor-color-palette',
[
[
'name' => esc_html( 'Brown', 'wpdc' ),
'slug' => 'brown',
'color' => '#3a3335',
],
[
'name' => esc_html__( 'Orange', 'wpdc' ),
'slug' => 'orange',
'color' => '#f0544f',
],
[
'name' => esc_html( 'Light Green', 'wpdc' ),
'slug' => 'light-green',
'color' => '#c6d8d3',
],
]
);
}
add_action( 'after_setup_theme', 'wpdc_add_custom_gutenberg_color_palette' );