AnsPress_Admin::anspress_create_base_page()
Description #
Create a page and set it as base page.
Source #
File: admin/anspress-admin.php
public static function anspress_create_base_page() { if ( current_user_can( 'manage_options' ) ) { ap_create_base_page(); flush_rewrite_rules(); delete_transient( 'ap_pages_check' ); } wp_redirect( admin_url( 'admin.php?page=anspress_options' ) );// phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect exit; }
Expand full source code Collapse full source code View on GitHub: admin/anspress-admin.php:788
Add your comment