add_action(‘frm_display_form_action’, ‘limit_entry_count’, 8, 3); function limit_entry_count($params, $fields, $form){ remove_filter(‘frm_continue_to_new’, ‘__return_false’, 50); if ( in_array($form->id, array(5,6,7)) ) { //change 5, 6, and 7 to your form ID(s) $count = FrmEntry::getRecordCount($form->id); if ( $count >= 15 ) { //change 15 to your…Continue reading
add_action(‘frm_display_form_action’, ‘check_entry_count’, 8, 3); function check_entry_count($params, $fields, $form){ global $user_ID; remove_filter(‘frm_continue_to_new’, ‘__return_false’, 50); if($form->id == 5 and !is_admin()){ //replace 5 with the ID of your form $count = FrmEntry::getRecordCount(“form_id=”. $form->id .” AND user_id=”.$user_ID); if($count >= 2){ //change 2 to your…Continue reading
add_action(‘frm_display_form_action’, ‘check_entry_count’, 8, 3); function check_entry_count($params, $fields, $form){ remove_filter(‘frm_continue_to_new’, ‘__return_false’, 50); if($form->id == 5 and !is_admin()){ //replace 5 with the ID of your form $count = FrmEntry::getRecordCount( array(‘form_id’ => $form->id, ‘it.ip’ => $_SERVER[‘REMOTE_ADDR’] ) ); if($count >= 2){ //change 2…Continue reading
add_action(‘frm_display_form_action’, ‘check_entry_count’, 8, 3); function check_entry_count($params, $fields, $form){ remove_filter(‘frm_continue_to_new’, ‘__return_false’, 50); global $user_ID; if($form->id == 5 and !is_admin()){ //replace 5 with your form ID $count = FrmEntry::getRecordCount(“form_id=”. $form->id .” AND it.created_at > ‘”. gmdate(‘Y-m-d’).” 00:00:00′ AND user_id=”.$user_ID); //$count = FrmEntry::getRecordCount(“form_id=”.…Continue reading
add_action(‘frm_display_form_action’, ‘check_entry_count’, 8, 3); function check_entry_count($params, $fields, $form){ global $user_ID; remove_filter(‘frm_continue_to_new’, ‘__return_false’, 50); if($form->id == 5 and !current_user_can(‘administrator’)) { //change 5 to the form ID $one_day_ago = strtotime(current_time(‘mysql’, 1)) – (60*60*24); //calculate 24 hours ago $count = FrmEntry::getRecordCount(“it.created_at > ‘”.date(‘Y-m-d…Continue reading
add_action(‘frm_display_form_action’, ‘close_my_form’, 8, 3); function close_my_form($params, $fields, $form){ remove_filter(‘frm_continue_to_new’, ‘__return_false’, 50); if($form->id == 6){ //remove this section or change 6 to a form ID if(time() > strtotime(‘2012-05-15’)){ echo ‘This form has expired’; add_filter(‘frm_continue_to_new’, ‘__return_false’, 50); } } }Continue reading
// Add the duplicate link to action list for post_row_actions // for “post” and custom post types add_filter( ‘post_row_actions’, ‘rd_duplicate_post_link’, 10, 2 ); // for “page” post type add_filter( ‘page_row_actions’, ‘rd_duplicate_post_link’, 10, 2 ); function rd_duplicate_post_link( $actions, $post ) {…Continue reading
add_action(‘admin_head’, ‘my_custom_css’); function my_custom_css() { echo ‘ ‘; }Continue reading
/** * For the Accordion Template, this is a helper script * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_action( ‘wp_head’, function () { ?>Continue reading
function my_wp_head() { echoContinue reading