Hot answers tagged

1

the corresponding hook would be https://developer.wordpress.org/reference/hooks/widget_pages_args/ example code: add_filter( 'widget_pages_args','include_special_pages' ); function include_special_pages( $args ) { $args['include'] = array( 147, 12, 32 ); return $args; }


1

What about filtering the_content? function se365701_require_email ( $content ) { if ( is_page( 'require_email' ) ) && !isset( htmlspecialchars( $_COOKIE['submitted_email']) ) { return $form; // your MailChimp Form Code } else{ return $content; } add_filter( 'the_content', 'se365701_require_email' ); Note that your form provide ...


Only top voted, non community-wiki answers of a minimum length are eligible