doter1995 2019-01-25 07:34
浏览 51

单个博客帖子页面打开和关闭时执行功能(Wordpress)

I am working a project of WordPress and I want to execute two functions on certain conditions. 1st function will be executed when the blog single post page is opened in browser and 2nd will be when that page is closed and navigated to another one from that page.

I know I can use is_single() method to check whether the page is opened of single post but for closing or navigating to another page I can use JavaScript also.. but i want to have better options than mine if anyone knows.

I really want the answer so please if anyone can help do share your views.

Thanks in advance.. and sorry cause I am not a native English speaker..if you find mistakes in my question.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 winform的chart曲线生成时有凸起
    • ¥15 msix packaging tool打包问题
    • ¥15 finalshell节点的搭建代码和那个端口代码教程
    • ¥15 用hfss做微带贴片阵列天线的时候分析设置有问题
    • ¥50 我撰写的python爬虫爬不了 要爬的网址有反爬机制
    • ¥15 Centos / PETSc / PETGEM
    • ¥15 centos7.9 IPv6端口telnet和端口监控问题
    • ¥120 计算机网络的新校区组网设计
    • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
    • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录