如何在wordpress管理面板上创建新表单?
我想在wordoress管理面板上为管理员存储数据创建新表单,例如,我有一个学生详细信息,我想通过管理面板存储 请让我知道 最好的如何在wordpress管理面板上创建新表单?,wordpress,Wordpress,我想在wordoress管理面板上为管理员存储数据创建新表单,例如,我有一个学生详细信息,我想通过管理面板存储 请让我知道 最好的 阿披舍克你为什么不创建一个新的帖子类型 您可以将其设置为不公开显示。你可以这样做: add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'la
阿披舍克你为什么不创建一个新的帖子类型 您可以将其设置为不公开显示。你可以这样做:
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'acme_product',
array(
'labels' => array(
'name' => __( 'Products' ),
'singular_name' => __( 'Product' )
),
'public' => false,
'has_archive' => true,
)
);
}
你为什么不创建一个新的帖子类型呢 您可以将其设置为不公开显示。你可以这样做:
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'acme_product',
array(
'labels' => array(
'name' => __( 'Products' ),
'singular_name' => __( 'Product' )
),
'public' => false,
'has_archive' => true,
)
);
}