Unless you have a different function that we are not seeing, in the <td> of your html, you are calling the function “rcp_print_membership_status”, however, your function name in the first code example is “rcp_get_status_label”. Are you trying to call that first function? If so:
As reads: <?php rcp_print_membership_status( $membership->get_id() ); ?>
Should read: <?php rcp_get_status_label( $membership->get_id() ); ?>
Additionally, you are not returning anything from that function so nothing will be printed/returned. If you are receiving a “status” ID and checking to see what string you should return based on that ID, you are better off just using a switch statement and NOT an array.
Are you expecting that first function to return something that is printed within the <td>?
Related Posts:
- Adding first / last CSS classes to menus
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- “wp_enqueue_style();” don’t load new edited style
- functions.php not adding css to website?
- if file_exists not working with wp_enqueue_style
- Want to create Child theme, but already edited Parent theme css files and some php files
- Using PHP to toggle stylesheet and header image, set in cookie
- Archive dropdown styling not applied
- Different background-image by category
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- Missing sidebar parameter “fix” – before_content
- How Display Posts on category
- Slider loading issue
- Parent theme CSS overriding child CSS rules
- How to style options page in dashboard?
- Theme Options Page – User Updates Logo
- How to use my style.css file outside of wordpress subdomain?
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar
- Can I install/embed WordPress on a ‘single page’?
- Incorrect MIME type for assets with Valet
- Customize position of social icons in upme plugin [closed]
- Css loads very slow [closed]
- How create a Shortcode with hover and complex options
- WordPress Multiple Navigation bars
- Which is the correct way to conditionally enqueue a CSS file?
- Custom Background by Page IDs
- Use PHP in stylesheet to specify a background image based on Category ID
- Change CSS based on is_user_logged_in
- How to create table in wordpress without plugin? [closed]
- Add class to DIV depending on page loaded
- Liking a facebook page from wordpress website?
- trouble with page_id & highlighting current page
- Change “No Comments” link to “My String” on Blog Post (Find Snippet in Code or use CSS, PHP Solution) [closed]
- Where can I find the inline-css of my theme header?
- Menu Custom Data Attributes
- Highlight the links without using dropdown
- How to modify mobile nav menu text in theme
- Website completely messes up when logging out
- Issue Enqueueing WordPress style.css
- Dividing the loop to style post differently
- How to add new CSS file to new PHP file
- Applying CSS on PHP variable [closed]
- wp nav menu: show submenu below li item
- Styling an “active” link outside of WordPress default menu
- I get “Cannot modify header information – headers already sent” when I change my theme
- How to edit background color of only one sidebar?
- How to sort posts by active category in WordPress?
- Timber right sidebar in WordPress theme
- How to find which .mo file is responsible for displaying a particular localized string?
- How to Remove Theme Style CSS inside Custom Plugin?
- Add other class content with reference class value
- Adding Custom css file in the wp-uploads directory with custom php functions
- How to hide a div section when user is logged in, in single product woocommerce
- How do I integrate vanilla Javascript to a wordpress website?
- Can’t display anything through homepage text editor
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- WordPress Slider is not working
- How to display post meta bellow every posts
- How to let mobile navigation menu close when link is clicked?
- Add my footer menu to the header
- Add Shortcode to ::before class
- Make a full-width wordpress page
- Bring Font Awesome icons inside menu A tags
- Blog Image and Title in Right Sidebar
- Trying to add get_the_title hook to this line
- How to display post_content from database in different on template page?
- Displaying POST content with HTML tags and all
- remove blank space where sidebar was
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Display specific main Sub Nav on Woocommerce product pages
- Position a repeated article blocks
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- Highlight Single Page Ancestor
- Custom Thumbnails [closed]
- Relative post date in recent posts list
- Why isn’t my link attribute getting my css?
- How to save the output of php variables used in inline css code to the main style.css?
- Revision History for Entire WordPress Site
- wp add inline style in loop
- Display pages from specific page template
- Trying to customize wordpress drop down categories
- How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?
- Sidebar doesnt get updated?
- How to NOT override inline css rules
- Add CSS class to PHP Statement
- Load files content [closed]
- Integrating CSS Into a WP Function Call [closed]
- Load slideshow.css file only if Slideshow is checked / on
- Predefine Magazine Style Layouts
- It’s not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]
- Add a “Next Post” & “Previous Post” styled button manually to a post
- Sorting Problem
- WooCommerce Checkout Cart [closed]
- why css file not link?how to create permalink?
- Using Featured Image as Hero Background in Word Press
- Live Preview while customizing is not showing the updates while editing in WordPress
- Hide or Show Read More Button by Content Area