Notice how we passed two custom fields wp_user_name which is an info we need to get from WP, that's why we used the. We will output the static part of the embed code between single quotes ' ', and when there is info we want to pass we will use one of the following default wordpress functions after we close the single quote, then we will start it again to continue the static part, like it is shown in the above example. We'll started by adding the template name that will later tell us where to find the bot, then in the same PHP tags we created an 'IF/ELSE' statement, this statement checks to see if the user is logged in, if that's true it will return all of the available user account details we have available, if it's not true it will go to the 'Else' statement. We will use a wordpress function to check IF the user is logged, we will pass the data, ELSE we will display the normal embed code without any data in it. The first step is to customize the code responsible for passing the identity, we will pass the email, first name, last name, user name, and a static custom field called " logged_in" we will use it to build the bot's logic. The article mentions full-page, but you can use any embed type you want. In order to use this example we need to embed our bot using the File Manager plugin, following the steps outlined in this article. We can achieve that by passing the lead's information in an identity in the embed code. We are using WordPress here as an example, but the same logic should work for any kind of site. HIDE MEDIA META FIELDS FROM USERS WORDPRESS HOW TO
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |