Skip to content

Instantly share code, notes, and snippets.

Created Mar 14, 2017
What would you like to do?
Add the Gravity Forms button to the new editor in Genesis archive settings for custom content types and terms.
// Parse shortcodes on custom content type archives and term archives.
add_filter( 'genesis_cpt_archive_intro_text_output', 'do_shortcode', 20 );
add_filter( 'genesis_term_intro_text_output', 'do_shortcode', 20 );
add_filter( 'gform_display_add_form_button', 'prefix_add_form_button' );
* Tell Gravity Forms to add the "Add Form" button to custom content archive
* settings and term settings pages.
* @param $is_post_edit_page
* @return bool
function prefix_add_form_button( $is_post_edit_page ) {
if ( in_array( RG_CURRENT_PAGE, array( 'edit.php', 'term.php' ), true ) ) {
$is_post_edit_page = true;
return $is_post_edit_page;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment