Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created August 20, 2019 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/257c63506257c5dd07e28bcd12e8f0bb to your computer and use it in GitHub Desktop.
Save plugin-republic/257c63506257c5dd07e28bcd12e8f0bb to your computer and use it in GitHub Desktop.
<?php
/**
* Move the description under the label for product add-ons
*/
function prefix_field_description_list_layout( $item, $id, $group_layout, $file ) {
pewc_field_description( $item, $id, $group_layout );
}
add_action( 'pewc_before_include_frontend_template', 'prefix_field_description_list_layout', 10, 4 );
// Remove the description field from after the field
remove_action( 'pewc_after_field_template', 'pewc_field_description_list_layout' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment