We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
different file & directory different FrontPage select.
function prefix_after_import_setup($selected_import_index) { /* Grab the selected import file. */ $selected_import_file = $GLOBALS['wizard']->import_files[ $selected_import_index ]; /* You may access the currently selected import file like so: */ if ( 'style1' === $selected_import_file['import_file_name'] ) { $front_page_id = get_page_by_title('Home'); update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $front_page_id->ID ); } if ( 'style2' === $selected_import_file['import_file_name'] ) { $front_page_id = get_page_by_title('Home2'); update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $front_page_id->ID ); } if ( 'style3' === $selected_import_file['import_file_name'] ) { $front_page_id = get_page_by_title('Home3'); update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $front_page_id->ID ); } if ( 'style4' === $selected_import_file['import_file_name'] ) { $front_page_id = get_page_by_title('Home4'); update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $front_page_id->ID ); } } add_action( 'merlin_after_all_import', 'prefix_after_import_setup' );
this code not working..
The text was updated successfully, but these errors were encountered:
No branches or pull requests
different file & directory different FrontPage select.
this code not working..
The text was updated successfully, but these errors were encountered: