我已经收到了以前开发人员的工作,因此我正在分析功能。php在我的圈子里的子主题。
基本上有这样一段代码,我知道函数除了\\uuu()部分之外做了什么:
register_post_type( \'services\',
        array(
            \'labels\' =>
                array(
                    \'name\' => __( \'Services\' , \'circles\'),
                    \'singular_name\' => __( \'Service\' , \'circles\')
                ),
            \'public\' => true,
            \'has_archive\' => false,
            \'rewrite\' => array( \'slug\' => \'services\' ),
            \'supports\' => array(\'title\',
                \'editor\',
                //\'author\',
                \'thumbnail\',
                //\'excerpt\',
                //\'comments\'
                \'page-attributes\'
            )
        )
    );
 我知道在PHP中,construct()指的是类的构造函数,但我不确定WordPress中的上述语法。
非常感谢。当做