Created
December 9, 2021 16:19
-
-
Save ibrahim-kardi/674e729ea32fa3fd3d61b58af73e89e4 to your computer and use it in GitHub Desktop.
crowd funding option panel url redirection URL not saving issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/plugins/wp-crowdfunding/settings/tabs/Tab_General.php | |
01. Need to add this code and replace with 112 to 118 line | |
array( | |
'id' => 'wpcf_redurl', | |
'type' => 'text', | |
'value' => ! empty( get_option( 'wpcf_redurl' ) ) ? absint( get_option( 'wpcf_redurl' ) ) : esc_url( home_url( '/' ) ), | |
'label' => __('Redirect URL for User Registration Success','wp-crowdfunding'), | |
), | |
02. Need to add this in the save_menu_settings function , line 358 | |
path: /plugins/wp-crowdfunding/settings/Admin_Menu.php | |
$siteurlred = sanitize_text_field(wpcf_function()->post('wpcf_redurl')); | |
wpcf_function()->update_text('wpcf_redurl', $siteurlred); | |
03. Need to add this in the number_of_items_per_page , line 400 , | |
path : plugins/wp-crowdfunding/includes/Functions.php | |
public function wpcf_redurl() { | |
$cf_red_url = ! empty( get_option( 'wpcf_redurl' ) ) ? get_option( 'wpcf_redurl' ) : esc_url( home_url( '/' ) ); | |
return $cf_red_url; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment