Saturday, June 4, 2022
HomeWordPress DevelopmentReplase publish title based mostly on circumstances

Replase publish title based mostly on circumstances


So I want to exchange all the title of posts in WordPress bases on consumer behaviuor and position. Please be aware that I want to exchange all the publish title and never the prepend or append textual content to it.

Every publish has a ‘default’ title, which is the title of the publish, like “Make No.1245/12.02.2022 on mannequin 2376/2021”. The choice title could be “Make No.*******/********.2022 on mannequin *******/2021” principally changing sure elements of the title with asterisks, primarily hiding it.

If the consumer is logged in AND has position ‘subscriber’ THEN he/she sees the default publish title.

If the consumer is customer (not logged in) OR is logged in however his position is ‘pending’ THEN he sees the choice publish title.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments