plugin install

This commit is contained in:
Tony Volpe
2024-06-18 17:29:05 -04:00
parent e1aaedd1ae
commit 41f50eacc4
5880 changed files with 1057631 additions and 39681 deletions

View File

@@ -25,7 +25,6 @@ if ( ! class_exists( 'acf_form_front' ) ) :
* @param n/a
* @return n/a
*/
function __construct() {
// vars
@@ -78,7 +77,6 @@ if ( ! class_exists( 'acf_form_front' ) ) :
* @param $post_id (int)
* @return $post_id (int)
*/
function validate_form( $args ) {
// defaults
@@ -154,7 +152,6 @@ if ( ! class_exists( 'acf_form_front' ) ) :
* @param $post_id (int)
* @return $post_id (int)
*/
function add_form( $args = array() ) {
// validate
@@ -175,7 +172,6 @@ if ( ! class_exists( 'acf_form_front' ) ) :
* @param $post_id (int)
* @return $post_id (int)
*/
function get_form( $id = '' ) {
// bail early if not set
@@ -187,6 +183,9 @@ if ( ! class_exists( 'acf_form_front' ) ) :
return $this->forms[ $id ];
}
function get_forms() {
return $this->forms;
}
/**
* This function will validate fields from the above array
@@ -198,7 +197,6 @@ if ( ! class_exists( 'acf_form_front' ) ) :
* @param $post_id (int)
* @return $post_id (int)
*/
function validate_save_post() {
// register field if isset in $_POST
@@ -231,7 +229,6 @@ if ( ! class_exists( 'acf_form_front' ) ) :
* @param $post_id (int)
* @return $post_id (int)
*/
function pre_save_post( $post_id, $form ) {
// vars
@@ -298,7 +295,6 @@ if ( ! class_exists( 'acf_form_front' ) ) :
* @param $post_id (int)
* @return $post_id (int)
*/
function enqueue_form() {
// check
@@ -319,7 +315,6 @@ if ( ! class_exists( 'acf_form_front' ) ) :
* @param n/a
* @return n/a
*/
function check_submit_form() {
// Verify nonce.
@@ -367,7 +362,6 @@ if ( ! class_exists( 'acf_form_front' ) ) :
* @param n/a
* @return n/a
*/
function submit_form( $form ) {
// filter
@@ -418,7 +412,6 @@ if ( ! class_exists( 'acf_form_front' ) ) :
* @param $post_id (int)
* @return $post_id (int)
*/
function render_form( $args = array() ) {
// Vars.
@@ -581,6 +574,10 @@ function acf_get_form( $id = '' ) {
return acf()->form_front->get_form( $id );
}
function acf_get_forms() {
return acf()->form_front->get_forms();
}
function acf_register_form( $args ) {
acf()->form_front->add_form( $args );