In function. the following code is inserted in php to enable the login user to view the content of the article. insert [members_only] [menmbers_only] where the user needs to view the content of each article. however, after I use the FooGallery short code in my article, FooGallery cannot be displayed normally. For more information, see... in function. the following code is inserted in php to enable the login user to view the content of the article. insert [members_only] [/menmbers_only] where the user needs to view the content of each article.
However, after I use the FooGallery short code in my article, FooGallery cannot be displayed normally. How can I solve this problem?
[Members_only]
[Foogallery id = "141"] [foogallery id = "141"] is displayed after the article is published, and no short code is called.
[/Menmbers_only]
Add_response code ('members _ only', 'Members _ only_response code '); function members_only_response code ($ atts, $ content = null) {if (is_user_logged_in ()&&! Empty ($ content )&&! Is_feed () {return $ content;} return 'You can learn only after you register and purchase a course ~ ';}
Reply content:
The following code is inserted in function. php to enable users to view the content of the article. In each article, insert [members_only] [/menmbers_only] where users need to log in.
However, after I use the FooGallery short code in my article, FooGallery cannot be displayed normally. How can I solve this problem?
[Members_only]
[Foogallery id = "141"] [foogallery id = "141"] is displayed after the article is published, and no short code is called.
[/Menmbers_only]
Add_response code ('members _ only', 'Members _ only_response code '); function members_only_response code ($ atts, $ content = null) {if (is_user_logged_in ()&&! Empty ($ content )&&! Is_feed () {return $ content;} return 'You can learn only after you register and purchase a course ~ ';}
Return do_response code ($ content );