check_admin_referer( 'import-upload' ); – what is this?
-
Hello, this is my second day of working with plugins. It may be an obvious question, but I can’t seem to find the answer to it.
I’ve been deconstructing “wordpress-importer” plugin (tools-import-import wordpress) to learn how this all works. At the same time I tried to build my version of import that would update one meta field based on the other meta field (for example if meta_id == 56 then meta_price == 1000).
but following steps “wordpress-import” took i can’t understand what the code means.so, what is check_admin_referer( ‘import-upload’ ); ? I know what admin referer does but I can’t seem to grasp what ‘import-upload’ points to.
As of now I’m getting ‘ERROR: The wordpress importer is invalid or is not installed.’.
I hope for answers or any pointers since I’m stuck without any pointer as to what the problem is about. Hopefully, thanks.
- The topic ‘check_admin_referer( 'import-upload' ); – what is this?’ is closed to new replies.