WP Manifestindependent plugin directory
manifest / content / mai-portfolio

Mai Portfolio WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Portfolio plugin for Mai themes

★ 0stars
1.1.3latest · 1 year ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/maithemewp/mai-portfolio/archive/refs/heads/master.zip
Updates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.

A versatile and lightweight portfolio plugin for Mai Theme.

Change content type labels and slugs via the available filters:

/**
 * Change portfolio post type args.
 *
 * @param array $args The post type args.
 *
 * @return array
 */
add_filter( 'mai_portfolio_args', function( $args ) {
    $args['rewrite']['slug'] = 'campaigns';

    foreach ( $args['labels'] as $key => $label ) {
        $args['labels'][ $key ] = str_replace( 'Portfolio', 'Campaign', $args['labels'][ $key ]  );
        $args['labels'][ $key ] = str_replace( 'portfolio', 'campaign', $args['labels'][ $key ]  );
    }

    return $args;
});
/**
 * Change portfolio type taxonomy args.
 *
 * @param array $args The taxonomy type args.
 *
 * @return array
 */
add_filter( 'mai_portfolio_type_args', function( $args ) {
    $args['rewrite']['slug'] = 'campaign-type';

    foreach ( $args['labels'] as $key => $label ) {
        $args['labels'][ $key ] = str_replace( 'Portfolio', 'Campaign', $args['labels'][ $key ]  );
        $args['labels'][ $key ] = str_replace( 'portfolio', 'campaign', $args['labels'][ $key ]  );
    }

    return $args;
});
/**
 * Change portfolio tag taxonomy args.
 *
 * @param array $args The taxonomy tag args.
 *
 * @return array
 */
add_filter( 'mai_portfolio_tag_args', function( $args ) {
    $args['rewrite']['slug'] = 'campaign-tag';

    foreach ( $args['labels'] as $key => $label ) {
        $args['labels'][ $key ] = str_replace( 'Portfolio', 'Campaign', $args['labels'][ $key ]  );
        $args['labels'][ $key ] = str_replace( 'portfolio', 'campaign', $args['labels'][ $key ]  );
    }

    return $args;
});

Releases

5 releases.

Tag
Published
1.1.3 latest
Dec 5, 2024 1 year ago
Nov 27, 2023 2 years ago
Jun 20, 2023 3 years ago
Jun 20, 2023 3 years ago
Jan 31, 2022 4 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Mai Portfolio 1.1.3 · audited by WP Registry

No security issues found.

Audited release
1.1.3
Findings
none
Worst severity
—
Content hash
feb949e8f33b92fc1a0d6b5f…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.