<?php
$currentlang = get_bloginfo('language');
if($currentlang=="en-US")
$link_text="All Products";
else
$link_text="Dummy Text";
?>
$return_string .= '<li class="wpc-category ' . $class . '"><a href="'. get_option('catalogue_page_url') .'">' . $link_text . '</a></li>';
Related Posts:
- Best collection of code for your 'functions.php' file [closed]
- Should all plugins be encapsulated in a Class?
- How can I edit post data before it is saved?
- How can I delete orphan keys in WordPress database tables?
- OpenID for WordPress 3.x? [duplicate]
- Get a button for in the Editor
- Plugin (or Theme) containing its own Plugins?
- How do I extend one plugin I’m writing with another I’m writing using classes?
- How to create extendable wordpress plugins
- Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import – How?
- Which functions in theme or plugin load first
- Add CSS animation as Preloader to WordPress
- Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload
- WP get_permalink Return Wrong URL
- WP Plugin for Terms of Use
- How to add product images using script?
- Automagic Link Shortening for Non-Hosted WP
- Setting up widgets in wordpress with a unique ID for the after_title argument
- MailChimp integration that allows users to select from multiple lists [closed]
- Distributing and packaging plugins
- Use plugin or custom post type for game score functionality
- Multiple Instances sharing the same database in a development environment
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- How to add rewrite rules and pagination to retrieve attachments files?
- Copyright messages for a particular set of pages
- how to load the language file in plugin?
- View Private Published Page with URL Code (no login required)
- Input with spaces in Shortcode attributes overwritten by defaults
- Translating long texts with html formatting
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- Does any one have Idea to get these functionalities with the plugin wp-multi-network
- custom payment gateway in woocommerce failed to connect to remote api server
- Send reply with pre-prepared answers
- Anspress Customization: How to show logged in user votes on a single answer?
- How create Group Blogs based on user created Groups
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- date/time-picker and file upload (image) fields for custom fields (e.g. with more fields)
- Getting Theme element into plugins page editor in wp admin
- GeoMashup plugin: how to customize cluster markers / icons? [closed]
- Inserting custom PHP script on homepage
- Best practice for including plugin output in a template without using shortcode?
- Basic gallery plugin suggestion [closed]
- a weird attribute on every html tag
- How to change the wp_upload_dir() path in plugin
- Disable plugin only for one post
- Free paypal cart solution [closed]
- Which plugin can do horizontal scrolling of RSS feeds in WordPress [closed]
- Advanced WordPress plugin activation detection
- how to change wp-admin url using function file
- Calling a save function from a “submit” button
- Is there a way to easily manage Project options (custom-fields)
- Renaming Custom Taxonomy Values
- Add a “default sorting” menu to child store pages
- Widget where it can make changes to the container
- Plugin code will not work properly inside a class [closed]
- Can’t create new CPTs when menu hidden
- Custom Module, Extending WP with a Plugin?
- Gathering all Custom Post Type posts in to array/object the proper way
- Multiple Post Thumbnails Plugin – Need help with code
- Rename Smart YouTube’s httpv back to http for all posts
- WordPress FLIR (Facelift Image Replacement) plugin clipping off end of text
- Custom Post Type, Custom Columns List
- How to prevent plugin, theme installation failures on WordPress?
- How to make PDF books readable on site with woo-commerce?
- WordPress search input in database, to edit information via form and update the database
- Adding category base to url in custom post giving 404?
- Post source link plugin – small modification
- Can we hide a certain user in WP?
- How Can I Increase Breadcrumb Position Count (Starting From 2)?
- Add custom WordPress admin page with pretty url via code
- Why does plugin_url append absolute file path?
- Load my Inline js footer area
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- Custom Icon assigned to menu items not working for multi-site networks
- Woocommerce list variations that are added already to cart in Single Product
- Flexslider empty slide
- Share on social media created listing after submission
- How can I save cookies to members
- Translation plugin with default language?
- Overwrite user role
- Place content inside the Post Loop
- Custom pages with plugin
- Changing the body of mail sent to new user registration
- Which One Is Better For Managing Add Ons For Extensible Plugin?
- Should I paste CDN links in a JS file or use a Bootstrap CDN plugin?
- Problem with Duplicate Meta / tag description in Webmaster Tool [duplicate]
- get_var result empty for query of custom table in plugin admin
- Posts are deleted everyday at night
- [Custom field template plugin] Upload limited to 20 inputs file
- I want to remove the register/login WordPress top bar from my website
- Change the behaviour of archive cpt category and single cpt by plugin, not by theme
- do_shortcodes() isn’t working
- WordPress Code Access to Restricted Content without Registration
- What can I do to customize a widget provided with this plugin? from where have I to start?
- WordPress: code structure
- Can anyone tell some online tuts for plugin development for beginner? [closed]
- How to pre-set WordPress settings for specific posts?
- Create Custom Coupon Type
- Using ACF to allow user to add and edit multiple saved forms