How can I add to shortcodes?

79
August 29, 2021, at 12:10 PM

I have plugin A that needs to verify two pieces of shortcodes before an action takes place within another plugin.

    <?php
function mepr_add_some_tabs($user) {
  ?>
    <span class="mepr-nav-item prem-support <?php MeprAccountHelper::active_nav('member-profile'); ?>">
      <!-- KEEPS THE USER ON THE ACCOUNT PAGE -->
      <a href="/account/?action=member-profile">Profile</a>
    </span>
  <?php
}
add_action('mepr_account_nav', 'mepr_add_some_tabs');
function mepr_add_tabs_content($action) {
  //Listens for the "member-profile" action on the account page, before rendering the FF view shortcode.
  if($action == 'member-profile') {
    echo do_shortcode('[frm-condition source=frm-stats id=80 type=count user_id=current greater_than=0] [display-frm-data id=5728] [/frm-condition]');
  }
}
add_action('mepr_account_nav_content', 'mepr_add_tabs_content');

The problem is I'm not a developer and I don't know how to add the second shortcode in the echo do_shortcode function.

The current shortcode basically says: if the user has an entry on the field ID: 80, then show them the content of the entry. What I need to add is another, second shortcode which will say almost the same thing, but about another field ID.

How can I add it while following this requirement?

Rent Charter Buses Company
READ ALSO
Change type / len of a user defined column in My SQL Workbench

Change type / len of a user defined column in My SQL Workbench

I am using a MySQL query in Workbench that uses group_concat() to group multiple string values

109
Is there a way to bypass anonymising service check?

Is there a way to bypass anonymising service check?

I have been dabbling with python and selenium for a while nowI Was trying to work with a website, and as I realize that I may have to make multiple calls to the site, and to avoid any ip related issue, I tried to use proxy

108